
Hello again,
Today I wanted to share a neat piece of code that has saved me a lot of time when sending bids to my favorite upvote bot.
Now, the config is set up to send 1 SBD to @dailyupvotes, but you can set it up for another Bot and a different amount if you wish, you only have to change the variables in the script.
Like in the other guides, you first start by creating the python file:
sudo nano dailyupvotes.py
You then paste this code:
from steem import Steem
s = Steem(keys=["YOUR ACTIVE KEY", "YOUR MEMO KEY"])
print ("welcome to dailyupvotes")
memo = input("Please provide the URL of your Post: ")
s.commit.transfer(
"dailyupvotes",
1.00,
"SBD",
memo= memo,
account="YOUR ACCOUNT"
)
print ("your post has been succesfully submitted, thank you for using our services")
To execute you type:
python3 dailyupvotes.py
The outcome should be something like this:
With this script you can send bids to your favorite upvote bot in literally seconds!
Enjoy!
PS: Make sure you have the python-steem module installed, you can find @emrebeyler library here: https://github.com/emre/steem-python-dshot