You are viewing a single comment's thread from:
RE: Execute python code directly from a steem post
#!/usr/bin/python
from beem import Steem
from beem.comment import Comment
import getpass
if __name__ == "__main__":
wif = getpass.getpass(prompt='Enter your posting key.')
stm = Steem(keys=[wif])
account = stm.wallet.getAccountFromPrivateKey(wif)
comment = Comment("@holger80/execute-python-code-directly-from-a-steem-post")
print("%s will upvote %s" % (account, comment["permlink"]))
comment.upvote(voter=account)
You can upvote my post after storing the
read_python_from_postscript from the post by: