fill in accounts and posting keys, copy all three parts in order, may need some spacing fixes on the nested if's THANK YOU!
This script could also be used to perpetually downvote or upvote any user. Use responsibly.
from steem.steem import Steem
from steem.steem import BroadcastingError
import threading
import time
import random
import csv
account = ["acc1" , "acc2" , "acc3" , "acc4 "]
posting_key = ["key1" , "key2" , "key" , "key4"]
upvote_history = []
comment_history = []
print("Waiting for new posts ")
steem = Steem(node = "wss://node.steem.ws", wif=posting_key[0])
if (comment["author"]) == "imarealboy777":
if comment.identifier in comment_history:
continue
if comment.identifier in upvote_history:
continue
print("New post by @%s %s" % (comment.author, url_builder(comment)))
workerThread = threading.Thread(name=comment.identifier, target=worker, args=(comment,))
workerThread.start()
def worker(worker_comment):
time.sleep(vote_delay)
try:
for (k,v) in enumerate(account):
worker_steem = Steem(node = "wss://node.steem.ws" , wif=posting_key[k])
upvote_comment = worker_steem.get_content(worker_comment.identifier)
upvote_comment.vote(100, v)
print("====> Upvoted")
upvote_history.append(upvote_comment.identifier)