如何使用steem python计算一个帖子的curation (2)?

in python •  6 years ago 

首先要读取帖子的所有信息,代码如下:

import json
from steem.post import Post

post = Post('python-dev/steem-python-curation-1')

# write post data
with open('post_data.json', 'w') as fp:
    json.dump(post,fp, indent=4,default=str)

在‘active_votes’ key 下面可以看到当前所有点赞人的具体信息

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

代码非常简洁啊,点赞信息里面只有 rshare的信息,rshare跟SP是什么关系? 如何计算?期待下一步的计算代码。

Congratulations @python-dev! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You got your First payout
Award for the number of upvotes received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!