create account

Daily Steem-Python Challenge #20, Win 1 Steem! by steempytutorials

View this thread on: hive.blogpeakd.comecency.com
· @steempytutorials ·
$2.31
Daily Steem-Python Challenge #20, Win 1 Steem!
<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)!
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorsteempytutorials
permlinkdaily-steem-python-challenge-20-win-1-steem
categoryprogramming
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"}
created2018-02-01 17:08:09
last_update2018-02-01 17:08:09
depth0
children7
last_payout2018-02-08 17:08:09
cashout_time1969-12-31 23:59:59
total_payout_value2.276 HBD
curator_payout_value0.031 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,465
author_reputation31,094,047,689,691
root_title"Daily Steem-Python Challenge #20, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id34,179,536
net_rshares373,950,566,047
author_curate_reward""
vote details (28)
@bruce-forks ·
[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).
👍  
properties (23)
authorbruce-forks
permlinkre-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180206t033649688z
categoryprogramming
json_metadata{"tags":["programming"],"links":["https://gist.github.com/bruce-forks/6bbf9279b9d1e4bb1a03e493f853338f"],"app":"steemit/0.1"}
created2018-02-06 03:36:48
last_update2018-02-06 03:36:48
depth1
children2
last_payout2018-02-13 03:36:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length201
author_reputation534,201,026,995
root_title"Daily Steem-Python Challenge #20, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id35,303,806
net_rshares0
author_curate_reward""
vote details (1)
@amosbastian ·
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!
👍  
properties (23)
authoramosbastian
permlinkre-bruce-forks-re-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180213t194803407z
categoryprogramming
json_metadata{"tags":["programming"],"app":"steemit/0.1"}
created2018-02-13 19:48:03
last_update2018-02-13 19:48:03
depth2
children1
last_payout2018-02-20 19:48:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length173
author_reputation174,473,586,900,705
root_title"Daily Steem-Python Challenge #20, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id37,289,472
net_rshares1,971,474,922
author_curate_reward""
vote details (1)
@bruce-forks ·
Thank you! No worries about the delay!
properties (22)
authorbruce-forks
permlinkre-amosbastian-re-bruce-forks-re-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180213t201044259z
categoryprogramming
json_metadata{"tags":["programming"],"app":"steemit/0.1"}
created2018-02-13 20:10:42
last_update2018-02-13 20:10:42
depth3
children0
last_payout2018-02-20 20:10:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length38
author_reputation534,201,026,995
root_title"Daily Steem-Python Challenge #20, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id37,293,862
net_rshares0
@emmanueltare ·
This how to make smeemit grow stronger @steempytutoriala,you are very good..
properties (22)
authoremmanueltare
permlinkre-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180508t204026098z
categoryprogramming
json_metadata{"tags":["programming"],"users":["steempytutoriala"],"app":"steemit/0.1"}
created2018-05-08 20:40:36
last_update2018-05-08 20:40:36
depth1
children0
last_payout2018-05-15 20:40:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length76
author_reputation37,961,568,339
root_title"Daily Steem-Python Challenge #20, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id54,632,627
net_rshares0
@shoot ·
Nice 👍... Following you for more,You can visit my profile, hope you will like my photography...@shoot
properties (22)
authorshoot
permlinkre-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180202t041341643z
categoryprogramming
json_metadata{"tags":["programming"],"users":["shoot"],"app":"steemit/0.1"}
created2018-02-02 04:13:45
last_update2018-02-02 04:13:45
depth1
children0
last_payout2018-02-09 04:13:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length101
author_reputation1,948,785,743,028
root_title"Daily Steem-Python Challenge #20, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id34,300,424
net_rshares0
@taslimabegum ·
Ok, i will try to use this challenge and i will be successful with it.
👍  ,
properties (23)
authortaslimabegum
permlinkre-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180201t175549698z
categoryprogramming
json_metadata{"tags":["programming"],"app":"steemit/0.1"}
created2018-02-01 17:53:18
last_update2018-02-01 17:53:18
depth1
children1
last_payout2018-02-08 17:53:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length70
author_reputation1,231,512,563,619
root_title"Daily Steem-Python Challenge #20, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id34,188,147
net_rshares605,369,460
author_curate_reward""
vote details (2)
@amosbastian ·
Good luck!
👍  
properties (23)
authoramosbastian
permlinkre-taslimabegum-re-steempytutorials-daily-steem-python-challenge-20-win-1-steem-20180201t190829500z
categoryprogramming
json_metadata{"tags":["programming"],"app":"steemit/0.1"}
created2018-02-01 19:08:30
last_update2018-02-01 19:08:30
depth2
children0
last_payout2018-02-08 19:08:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10
author_reputation174,473,586,900,705
root_title"Daily Steem-Python Challenge #20, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id34,202,775
net_rshares500,381,231
author_curate_reward""
vote details (1)