4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

Bot upvote ta explains how whales appear.

Bot Upvote 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"])
c is in steem.stream_comments ():
     if c ["author"] in authors:
         print (c.upvote ())

He reqquires you put your key WIF and authors JSON list in a
environment variable:

export WIF = "" AUTHORS = '[ "xeroc", "dantheman" "ned", "arhag"]'
Notice

This time requries you install python-esteem library and piston development branch.

49 upvotes $0.00

Replies (2)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: