首先要读取帖子的所有信息,代码如下: ~~~ 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 下面可以看到当前所有点赞人的具体信息 ![](https://cdn.steemitimages.com/DQmXqwyHS664GzQ21e7ZGRDc2M6mFFE4g9BrjgSiyC2VM8W/image.png)
post_id | 64,443,554 |
---|---|
author | python-dev |
permlink | steem-python-curation-2 |
category | python |
json_metadata | {"image":["https:\/\/cdn.steemitimages.com\/DQmXqwyHS664GzQ21e7ZGRDc2M6mFFE4g9BrjgSiyC2VM8W\/image.png"],"app":"steemit\/0.1","tags":["python"],"format":"markdown"} |
created | 2018-10-17 23:51:30 |
last_update | 2018-10-17 23:51:30 |
depth | 0 |
children | 2 |
net_rshares | 484,397,736,842 |
last_payout | 2018-10-24 23:51:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.446 SBD |
curator_payout_value | 0.141 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 354 |
author_reputation | 5,194,641,198,313 |
root_title | "如何使用steem python计算一个帖子的curation (2)?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
justyy | 0 | 42,056,222,886 | 2.33% | ||
superbing | 0 | 530,604,643 | 7.72% | ||
dailystats | 0 | 1,415,941,055 | 7.67% | ||
jianan | 0 | 1,281,179,495 | 7.82% | ||
anxin | 0 | 134,493,596 | 7.84% | ||
woolfe19861008 | 0 | 106,802,113 | 7.84% | ||
dailychina | 0 | 1,542,992,683 | 7.71% | ||
dongfengman | 0 | 705,191,176 | 7.83% | ||
ethanlee | 0 | 177,125,481 | 6.4% | ||
lilypang22 | 0 | 141,647,066 | 5.01% | ||
mythosacademy | 0 | 493,021,360 | 6% | ||
sweet-jenny8 | 0 | 1,387,844,988 | 7.83% | ||
xiguang | 0 | 431,779,890,412 | 100% | ||
laiyuehta | 0 | 275,532,770 | 7.68% | ||
turtlegraphics | 0 | 717,065,377 | 7.7% | ||
witnesstools | 0 | 690,379,010 | 7.7% | ||
ilovecoding | 0 | 526,622,637 | 6.81% | ||
steemfuckeos | 0 | 435,180,094 | 7.7% |
代码非常简洁啊,点赞信息里面只有 rshare的信息,rshare跟SP是什么关系? 如何计算?期待下一步的计算代码。
post_id | 64,443,707 |
---|---|
author | saint-knight |
permlink | re-python-dev-steem-python-curation-2-20181017t235619360z |
category | python |
json_metadata | {"app":"steemit\/0.1","tags":["python"]} |
created | 2018-10-17 23:56:18 |
last_update | 2018-10-17 23:56:18 |
depth | 1 |
children | 0 |
net_rshares | 429,470,419,986 |
last_payout | 2018-10-24 23:56:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.394 SBD |
curator_payout_value | 0.034 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 59 |
author_reputation | 2,761,284,220,511 |
root_title | "如何使用steem python计算一个帖子的curation (2)?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
xiguang | 0 | 429,470,419,986 | 100% |
Congratulations @python-dev! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : [![](https://steemitimages.com/70x70/http://steemitboard.com/notifications/firstpayout.png)](http://steemitboard.com/@python-dev) You got your First payout [![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png)](http://steemitboard.com/@python-dev) Award for the number of upvotes received <sub>_Click on the badge to view your Board of Honor._</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> > Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
post_id | 64,516,836 |
---|---|
author | steemitboard |
permlink | steemitboard-notify-python-dev-20181019t042943000z |
category | python |
json_metadata | {"image":["https:\/\/steemitboard.com\/img\/notify.png"]} |
created | 2018-10-19 04:29:42 |
last_update | 2018-10-19 04:29:42 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-10-26 04:29:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 843 |
author_reputation | 38,705,954,145,809 |
root_title | "如何使用steem python计算一个帖子的curation (2)?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |