that's what i call informative :p
i dont do python myself and i never used javascript anywhere outside of a browser really
hobbystuff like this or this or this
(i have to say : that site runs on a server thats under a table in my bedroom, some mini itx mm-board with a celeron cpu and 8gb ddr4 running linux and LAMP so the connection might take 1-2-3 seconds its a hobby thing, right)
i just somewhat hack it using steempy and linux shell/bash
for accountname in ./ubasti_paidpost_eligible
do
cat $accountname |sed 's/.\(.*\)/\1/' > ./withouttheat
done
while read line
do
steempy transfer $line $AMOUNT $ASSET "$MEMO"
done < ./withouttheat
the main routine really isnt more than that, it does about i dont know 30 payments in 2 to 3 minutes ?
i stopped that because it wasnt sustainable but the intention is to automate the accounts, run them from the server on steempy so the posts and payouts go without me having to spend time on it
but afaik there's no validation in steempy cli itself so it would have to
i dont know , catch it on every loop or write it to file, then parse it to see if there were any faulty transactions, the code isnt very hard but my head's been quite soft lately and the summer temperature aint helping
id do without but i havent found the rpc call yet to make transactions and even if, if it would require sending my key outside i wouldnt trust it
call me paranoid but im sure any automated system that handles even the smallest amount of money attracts them like flies the longer it goes unattended :p
one line at a time, right , the hassle is i have to manually wade through account historys and downloaded json data to get the relevant part
(some people would call that masochistic since i can decode json with a third party or use the available libraries but linux is just more my comfort zone and once i get the pattern i can use it indefinitely)
like
for a in $(cat ubasti_paidpost_eligible)
do
URL2GET=$(echo "https://steemit.com/$a.json")
wget -qO- $URL2GET |gunzip >$a
lasttimevar=$(grep -Po '(?<=("last_root_post":")).*?(?=(","))' $a)
the main part of the script to loop through a post and find out which of the accounts that voted on it have a an active root_post (meaning in my case younger than seven days) before it selects the people eligible to receive a vote, then thats decided randomly
for which i just found a nice site that has an api and is free to use
anu quantum random number server
they claim to have true random numbers, i started using them because i found google random number nearly gave the same people every time which looks like im having favourites
which is something i ofcourse not want if i say i give out 3 votes selected randomly :)
if i had any kind of structure in my head id probably be way further but
i am me, so i shouldnt try to be someone else because if i do that i'll get absolutely nothing done