well its not github and i'm not really trying to educate although if anyone gets anything from anything i say i guess thats a nice bonus. It's just my journey as i dive nose first below the surface. I forgot
in the underground is where the shadows are
so, the previous script got about screwed five times a day by the admin of steemd doing his thing on his thing (are feminists gonna sue me now, coz i would say it but that's impolite too, right and making every sentence bisexual is a lot of hassle and stress on the network so consider "he" to be a person if you don't mind)
now look what you made me do, im not chaotic enough as is ?
thats how much people waste on your pc-ness your highness ...
and then you say "me" needs to get to the point faster ? you should listen to you sometimes there /snickerz
I'll keep it shorter than the last one ofcourse since its an edit and it should work until the actual api on steemit itself changes the way calls are made or methods are named ... which wont happen as fast as third party competers for teh lulz will do, nuff said, the guddies#!/bin/bash
##################################
ACCOUNTHANDLE='@rudyardcatling'
##################################
ACCOUNTHANDLE="$ACCOUNTHANDLE.json"
DOMAIN='https://steemit.com/'
CURLURL="$DOMAIN$ACCOUNTHANDLE"
wget -qO- $CURLURL |gunzip >jsondata
cat jsondata |./pretty_please.sh >jsondataa
varvar=$(cat jsondataa |grep -oP '(?<=("vesting_shares":")).*(?=( VESTS))')
varvar=$(echo "$varvar * 1000000 * 0.02" |bc)
curl --silent --data '{"jsonrpc": "2.0", "method": "get_reward_fund", "params": ["post"], "id": 40 }' https://api.steemit.com |./pretty_please.sh >jsondataaa
totvar=$(cat jsondataaa |grep -oP '(?<=(recent_claims":")).*(?=(",))')
morvar=$(echo "$varvar / $totvar" |bc -l)
lastvar=$(cat jsondataaa |grep -oP '(?<=(reward_balance":")).*(?=( S))')
finalvar=$(echo "$morvar * $lastvar" |bc -l)
curl --silent --data '{"jsonrpc": "2.0", "method": "get_state", "params": ["post"], "id": 40 }' https://api.steemit.com |./pretty_please.sh >jsondataaa
basevar=$(cat jsondataaa |grep -oP '(?<=(base":")).*(?=( S))')
quotevar=$(cat jsondataaa |grep -oP '(?<=(quote":")).*(?=( S))')
ratiovar=$(echo "$basevar / $quotevar" |bc -l)
sbdvar=$(echo "$finalvar * $ratiovar" |bc -l)
#roll the drums
echo "100 % vote is worth:"$sbdvar
rm jsondata
rm jsondataa
rm jsondataaa
bvrzzzzz welll ... it took me quite some time to figure this out while all i needed was the method name, which for some reason is hidden in something called "109 curls" and no one would tell me about other than "use python" or "install js"... well thats not part of the masterplan is it but dont worry, im not here to compete and if you try to compete me i react bad to people who force me to play ... its something i wanna do so i prefer to stay friendly, but it would be nice
if i ask a question to someone who KNOWS
that they'd just tell me ... i dont want your spot in the spotlight, i HATE the spotlight besides
i'm a steembum ...
the short explanation is : you can copypaste this, change the name to your accountname, run it and it will tell you
the somewhat longer is :
i no longer use someone elses website to parse pages from so no one will cockblock me for teh lulz, but i never intended to whatever it is competitive people think i'm doing
it looks a bit more concatenated because it is , and that's because you dont have the pretty print script
which looks a little like
"[^"]*" *(: *([0-9]*|"[^"]*")[^{}\["]*|,)?|[^"\]\[\}\{]*|\{|\},?|\[|\],?|[0-9 ]*,?' | awk '{if ($0 ~ /^[}\]]/ ) offset-=4; printf "%*c%s\n", offset, " ", $0; if ($0 ~ /^[{\[]/) offset+=4
and is something i didnt actually have to look for for very long because freaks have no problem telling people how they do it lol
you'll have to excuse
my sick sense of humour
if anyone really wants the Ux-version of how to get your vote going on i'll gladly include the printprettywithoutusinganyliborinstall version, courtesy of
stack overflow ofcourse, where the gods live in their spare time
it still has curl, it has two times less network access so it runs faster and i think i already know how to do only with wget which comes standard on install which is the whole point of said "exercise" as some would call it
but before anyone thinks im being cocky the cat again i'm gonna take my bulging ego for having done it before anyone i asked would answer a bit to the fringe of this place and pat myself on the back because if
i could still have fun, then this would have been some
...
you dont need much if you just have #linux
and i lurvz it lurvz it
lurvz lurvz lurvz it
my vote has gone from 3 to 4 promille since last post btw
next script i hope for 6 or 7 and a script that does more than just tell my my vote's worth, its a bag of tricks in a folder to be
and THIS ...
is what i've been doing all day ....
allow me to put up some tags because when i was praying to the 1e100 earlier looking for answers i found my previous post on the front page
and its not a week old ... so that tells you how noobfriendly the docs are lol
You have a minor misspelling in the following sentence:
It should be until instead of untill.Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
is that so ... i see you are a fan hahah ... but i do believe thats an honest typo and not on purpose so i'll correct it, thanks for your swift attention there
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit