Skip to content

Instantly share code, notes, and snippets.

@emre
Last active December 19, 2017 21:42
Show Gist options
  • Save emre/bd695705d6c4f064e565ffd7c63050da to your computer and use it in GitHub Desktop.
Save emre/bd695705d6c4f064e565ffd7c63050da to your computer and use it in GitHub Desktop.
sndbox
from steem import Steem
from steem.account import Account
from steem.post import Post
def check_for_votes():
s = Steem()
voted_accounts = set()
acc = Account('sndbox', steemd_instance=s)
votes = list(acc.get_account_history(
-1, 10000, filter_by=["vote"]))
votes += list(acc.get_account_history(
10000, 10000, filter_by=["vote"]))
for vote in votes:
if vote["author"] == "sndbox":
continue
if vote["author"] in voted_accounts:
continue
p = Post("@%s/%s" % (vote["author"], vote["permlink"]))
if 'sndbox' not in p.tags:
continue
voted_accounts.add(vote["author"])
return voted_accounts
authors = check_for_votes()
print('Total of authors: %s' % len(authors))
print("Full List: \n %s" % authors)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment