/sndboxmembers.py Secret
Last active
December 19, 2017 21:42
sndbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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