Upvote bot in less than 10 lines of code
steem·@xeroc·
0.000 HBDUpvote bot in less than 10 lines of code
Dear Steemians, **Upvote bot** in less than 10 lines of code ``` from piston.steem import Steem import os import json steem = Steem(wif=os.environ["WIF"]) authors = json.loads(os.environ["AUTHORS"]) for c in steem.stream_comments(): if c["author"] in authors: print(c.upvote()) ``` It reqquires that you put your WIF key and JSON list of AUTHORS into an environmental variable: ``` export WIF="<wif-posting-key>" AUTHORS='["xeroc", "dantheman", "ned", "arhag"]' ``` ### Note This currently requries that you install the python-steem library as well as piston from the development branch. Have fun!
👍 tuck-fheman, xeroc, markopaasila, idealist, cryptopuffin, amartinezque, steemrollin, firstclass, dab, liondani, steempower, bhuz, vato, benjojo, summon, pstrident, richman, john-kimmel, clains, stino-san, jeky-jeky, au1nethyb1, xav, fattire, cass, freedom, chitty, dana-edwards, donkeypong, complexring, pal, cryptorune, idol, joseph, modprobe, hcf27, fuzzyvest, nuno-nutcrusherz, john-khan, jerome-colley, unosuke, abit, b4bb4r-5h3r, steemit200, badassmother, jamtaylor, horselditty, proctologic, seagul, arrogantobserver, alecsinspace, magix, makimoto, sunshinecrypto, xcode18, evgenyche, s4in, kell234, dudutaulois, akaninyene-etuk, shneakysquirrel, alex.chien, mineralwasser, bingo-0, bingo-1, rubybian, mrs.agsexplorer, barrie, murh, boombastic, marieta88, teebz, beeridiculous, progamatic, adham, badrobby, mikeill, pillowz, kiranrh, brysj22952, rockyt, syarifahalhabsyi, sheloumith, dylen, mike29, tcrypto86, cloudconnect, jayb435,