<center>https://cdn.discordapp.com/attachments/404587860872921088/405329216280723458/challenge.png</center> For each tutorial we release there will be a relevant challenge where the winner receives 1 STEEM! ### Challenge Take the code from the tutorial from [here](https://github.com/amosbastian/steempy-tutorials/tree/master/part_20) and change it to be able to do the following 1. Instead of calculating the total rewards a post has generated and plotting that, calculate the author rewards and plot that instead (**Note:** the `get_blog()` function apparently only works for the 500 most recent posts, so test this on an account with less than 500 posts). That's it! Good luck to everyone participating! ### Deadline The prize money will be rewarded to the person that solves the problem first. If there is no solution within 7 days after this post has been submitted the prize pool expires. ### Relevant Tutorial - [Part 14: How To Estimate All Rewards In Last N Days Using Steem-Python](https://steemit.com/utopian-io/@steempytutorials/how-to-estimate-all-rewards-in-last-n-days-using-steem-python) - [Part 20: Plotting Account's Total Generated Post Rewards Since Creation](https://steemit.com/utopian-io/@steempytutorials/part-20-plotting-account-s-total-generated-post-rewards-since-creation) --- If you have questions about the tutorial or the challenge then don't hesitate to comment below or contact us on [Discord](https://discord.gg/rYTV87W)!
author | steempytutorials |
---|---|
permlink | daily-steem-python-challenge-20-win-1-steem |
category | programming |
json_metadata | {"tags":["programming","python","contest","bot","steemdev"],"image":["https://cdn.discordapp.com/attachments/404587860872921088/405329216280723458/challenge.png"],"links":["https://github.com/amosbastian/steempy-tutorials/tree/master/part_20","https://steemit.com/utopian-io/@steempytutorials/how-to-estimate-all-rewards-in-last-n-days-using-steem-python","https://steemit.com/utopian-io/@steempytutorials/part-20-plotting-account-s-total-generated-post-rewards-since-creation","https://discord.gg/rYTV87W"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-02-01 17:08:09 |
last_update | 2018-02-01 17:08:09 |
depth | 0 |
children | 7 |
last_payout | 2018-02-08 17:08:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 2.276 HBD |
curator_payout_value | 0.031 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,465 |
author_reputation | 31,094,047,689,691 |
root_title | "Daily Steem-Python Challenge #20, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,179,536 |
net_rshares | 373,950,566,047 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
juliank | 0 | 336,712,939,331 | 30% | ||
mirzaars010 | 0 | 190,673,789 | 100% | ||
makerhacks | 0 | 7,080,673,840 | 100% | ||
amosbastian | 0 | 15,553,568,769 | 100% | ||
veenox | 0 | 155,364,119 | 100% | ||
oups | 0 | 2,925,280,428 | 100% | ||
fisherck | 0 | 1,459,325,422 | 100% | ||
reverbtank | 0 | 586,167,131 | 100% | ||
ariab88 | 0 | 607,129,171 | 100% | ||
steempytutorials | 0 | 4,083,004,850 | 100% | ||
palik | 0 | 521,869,996 | 100% | ||
priyalath5 | 0 | 0 | 100% | ||
criptoivan-en | 0 | 316,992,589 | 100% | ||
luj1 | 0 | 515,422,328 | 100% | ||
bloodviolet | 0 | 712,459,099 | 100% | ||
bruce-forks | 0 | 613,754,140 | 100% | ||
amponchiek | 0 | 221,209,902 | 100% | ||
uzair.khan | 0 | 422,060,414 | 100% | ||
jm6289628 | 0 | 0 | 100% | ||
taslimabegum | 0 | 544,420,022 | 100% | ||
cccp | 0 | 614,468,195 | 100% | ||
ruangkreatif | 0 | 113,782,512 | 100% | ||
musafir79 | 0 | 0 | 100% | ||
schase | 0 | 0 | 100% | ||
kabirlec9 | 0 | 0 | 100% | ||
prasannab | 0 | 0 | 100% | ||
golamor | 0 | 0 | 100% | ||
emmanueltare | 0 | 0 | 100% |
[Here's](https://gist.github.com/bruce-forks/6bbf9279b9d1e4bb1a03e493f853338f) my solution. I just used your code from #14 to estimate author rewards when a post is still fresh (it isn't paid out yet).
author | bruce-forks |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180206t033649688z |
category | programming |
json_metadata | {"tags":["programming"],"links":["https://gist.github.com/bruce-forks/6bbf9279b9d1e4bb1a03e493f853338f"],"app":"steemit/0.1"} |
created | 2018-02-06 03:36:48 |
last_update | 2018-02-06 03:36:48 |
depth | 1 |
children | 2 |
last_payout | 2018-02-13 03:36:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 201 |
author_reputation | 534,201,026,995 |
root_title | "Daily Steem-Python Challenge #20, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 35,303,806 |
net_rshares | 0 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
amosbastian | 0 | 0 | 100% |
Congratulations, just tested it and it seems to work fine! Sorry for the delay, I've been busy with a lot of stuff in real life. Will send you the STEEM as soon as possible!
author | amosbastian |
---|---|
permlink | re-bruce-forks-re-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180213t194803407z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-02-13 19:48:03 |
last_update | 2018-02-13 19:48:03 |
depth | 2 |
children | 1 |
last_payout | 2018-02-20 19:48:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 173 |
author_reputation | 174,473,586,900,705 |
root_title | "Daily Steem-Python Challenge #20, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 37,289,472 |
net_rshares | 1,971,474,922 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
bruce-forks | 0 | 1,971,474,922 | 100% |
Thank you! No worries about the delay!
author | bruce-forks |
---|---|
permlink | re-amosbastian-re-bruce-forks-re-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180213t201044259z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-02-13 20:10:42 |
last_update | 2018-02-13 20:10:42 |
depth | 3 |
children | 0 |
last_payout | 2018-02-20 20:10:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 38 |
author_reputation | 534,201,026,995 |
root_title | "Daily Steem-Python Challenge #20, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 37,293,862 |
net_rshares | 0 |
This how to make smeemit grow stronger @steempytutoriala,you are very good..
author | emmanueltare |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180508t204026098z |
category | programming |
json_metadata | {"tags":["programming"],"users":["steempytutoriala"],"app":"steemit/0.1"} |
created | 2018-05-08 20:40:36 |
last_update | 2018-05-08 20:40:36 |
depth | 1 |
children | 0 |
last_payout | 2018-05-15 20:40:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 76 |
author_reputation | 37,961,568,339 |
root_title | "Daily Steem-Python Challenge #20, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,632,627 |
net_rshares | 0 |
Nice 👍... Following you for more,You can visit my profile, hope you will like my photography...@shoot
author | shoot |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180202t041341643z |
category | programming |
json_metadata | {"tags":["programming"],"users":["shoot"],"app":"steemit/0.1"} |
created | 2018-02-02 04:13:45 |
last_update | 2018-02-02 04:13:45 |
depth | 1 |
children | 0 |
last_payout | 2018-02-09 04:13:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 101 |
author_reputation | 1,948,785,743,028 |
root_title | "Daily Steem-Python Challenge #20, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,300,424 |
net_rshares | 0 |
author | taslimabegum |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180201t175549698z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-02-01 17:53:18 |
last_update | 2018-02-01 17:53:18 |
depth | 1 |
children | 1 |
last_payout | 2018-02-08 17:53:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 70 |
author_reputation | 1,231,512,563,619 |
root_title | "Daily Steem-Python Challenge #20, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,188,147 |
net_rshares | 605,369,460 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
sebrock | 0 | 114,197,699 | 100% | ||
palik | 0 | 491,171,761 | 100% |
Good luck!
author | amosbastian |
---|---|
permlink | re-taslimabegum-re-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180201t190829500z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-02-01 19:08:30 |
last_update | 2018-02-01 19:08:30 |
depth | 2 |
children | 0 |
last_payout | 2018-02-08 19:08:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 10 |
author_reputation | 174,473,586,900,705 |
root_title | "Daily Steem-Python Challenge #20, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,202,775 |
net_rshares | 500,381,231 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
palik | 0 | 500,381,231 | 100% |