updated version of the script:
from piston import Steem
from piston.account import Account
accountNames = ['user_0','user_n']
postingKeys = ['58B453pR1v4t3P0571ngKEy4user0','58B453pR1v4t3P0571ngKEyf0rU5erN']
steem_api = Steem(keys=postingKeys)
for name in accountNames:
print('\nACCOUNT: %s\n' % name)
current_acc = Account(name)
current_steem = current_acc['reward_steem_balance']
current_sbd = current_acc['reward_sbd_balance']
current_vests = current_acc['reward_vesting_balance']
print('STEEM : %s' % current_steem)
print('SBD : %s' % current_sbd)
print('VESTS : %s' % current_vests)
if (current_steem != '0.000 STEEM') or (current_sbd != '0.000 SBD') or (current_vests != '0.000000 VESTS'):
print('\ntrying to claim rewards ...')
try:
steem_api.claim_reward_balance(current_steem,current_sbd,current_vests,current_acc['name'])
print('[SUCCESS] Rewards claimed')
except:
print('[ERROR] Something went wrong')
else:
print('[FAILURE] Nothing to claim')
print('\nFINISHED')
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
hey murh, I saw that you disvoted my posts. I understand that you thought you did the right thing, but please hear me out when I saw that this is a huge misunderstanding! I am in no way a pedophile. I've written a short post where I explain the whole situation - would you mind reading it through because right now my profile is destroyed and I really don't like being marked for something I am not.
Thank you!!
https://steemit.com/steemit/@therealwolf/i-feel-humiliated-and-bullied
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Could you post some documentation?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit