<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_7). Fellow Steemian @maxg suggested using [at](https://tecadmin.net/one-time-task-scheduling-using-at-commad-in-linux/) to schedule scripts at certain time instead of doing this inside the python script. Great idea! ``` > echo 'python post.py first_post.txt' | at 9:00AM > echo 'python post.py second_post.txt' | at 11:00AM ``` <br> 1. Adjust the code so that it takes the filename for the` post.txt` from the command line arguments. Then alter the `post.txt` file where the first line is the `title` of the post, the second line are the `tags` (separated by whitespace) and the third line is the `voting_weight`. The rest of file should be the body of the post. 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. **Note:** We shift the release time of the daily challenge by ~6 hours every day, so everybody has a fair shot. ### Relevant Tutorial [Part 7: How To Schedule Posts And Manually Upvote Posts For A Variable Voting Weight With Steem-Python](https://steemit.com/utopian-io/@steempytutorials/part-7-how-to-schedule-posts-and-manually-upvote-posts-for-a-variable-voting-weight-with-steem-python) --- 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-7-win-1-steem |
category | contest |
json_metadata | {"tags":["contest","python","bot","programming","steemdev"],"users":["maxg"],"image":["https://cdn.discordapp.com/attachments/404587860872921088/405329216280723458/challenge.png"],"links":["https://github.com/amosbastian/steempy-tutorials/tree/master/part_7","https://tecadmin.net/one-time-task-scheduling-using-at-commad-in-linux/","https://steemit.com/utopian-io/@steempytutorials/part-7-how-to-schedule-posts-and-manually-upvote-posts-for-a-variable-voting-weight-with-steem-python","https://discord.gg/rYTV87W"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-01-19 22:08:33 |
last_update | 2018-01-23 15:19:09 |
depth | 0 |
children | 12 |
last_payout | 2018-01-26 22:08:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 7.524 HBD |
curator_payout_value | 0.075 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,788 |
author_reputation | 31,094,047,689,691 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,720,725 |
net_rshares | 691,262,246,738 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
keyser | 0 | 0 | 100% | ||
adialam | 0 | 4,126,852,741 | 100% | ||
nicnas | 0 | 12,311,177,124 | 30% | ||
juliank | 0 | 654,429,918,527 | 50% | ||
sammie85 | 0 | 394,113,328 | 100% | ||
maadi | 0 | 400,594,092 | 100% | ||
money-dreamer | 0 | 504,959,755 | 1% | ||
ishotz | 0 | 8,108,797,376 | 100% | ||
emrebeyler | 0 | 3,245,005,124 | 7% | ||
maxg | 0 | 869,285,428 | 100% | ||
amosbastian | 0 | 2,704,158,721 | 100% | ||
heimdallr | 0 | 288,105,071 | 100% | ||
jackdominic54 | 0 | 487,784,881 | 100% | ||
steempytutorials | 0 | 2,460,004,654 | 100% | ||
therockman | 0 | 350,813,282 | 100% | ||
dhaj89 | 0 | 580,676,634 | 100% |
[My solution](https://gist.github.com/emre/a02ef7c3314c95cf720c5b84c8431d9a) I found an error on your solution so sending mine. @maxg 😎
author | emrebeyler |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t224301635z |
category | contest |
json_metadata | {"tags":["contest"],"users":["maxg"],"links":["https://gist.github.com/emre/a02ef7c3314c95cf720c5b84c8431d9a"],"app":"steemit/0.1"} |
created | 2018-01-19 22:43:03 |
last_update | 2018-01-19 22:43:03 |
depth | 1 |
children | 7 |
last_payout | 2018-01-26 22:43:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.220 HBD |
curator_payout_value | 0.005 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 136 |
author_reputation | 448,528,959,341,273 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,726,308 |
net_rshares | 20,853,156,425 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
emrebeyler | 0 | 15,143,357,245 | 35% | ||
turbot | 0 | 5,709,799,180 | 100% |
O damn, I can see a rivalry starting!
author | amosbastian |
---|---|
permlink | re-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t225214270z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2018-01-19 22:52:15 |
last_update | 2018-01-19 22:52:15 |
depth | 2 |
children | 0 |
last_payout | 2018-01-26 22:52:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.040 HBD |
curator_payout_value | 0.011 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 37 |
author_reputation | 174,473,586,900,705 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,727,739 |
net_rshares | 4,867,570,332 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
emrebeyler | 0 | 4,867,570,332 | 11% |
There is also a small error in your submission, you forgot to cast the upvote_weight to a float. Since both of your entries together make up the correct solution and I have no fair way of notifying both of you at the same time. How do you feel when I split the prize pool for this one? Also, I have been looking into beneficiaries. But this seems a lot more complicated due to errors with steem-python. Nice challenge ;)
author | juliank |
---|---|
permlink | re-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180120t220742503z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2018-01-20 22:07:42 |
last_update | 2018-01-20 22:09:24 |
depth | 2 |
children | 3 |
last_payout | 2018-01-27 22:07:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.350 HBD |
curator_payout_value | 0.024 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 421 |
author_reputation | 117,823,071,447,502 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,962,111 |
net_rshares | 33,152,830,213 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
maxg | 0 | 730,775,066 | 100% | ||
rewardpoolrape | 0 | 32,422,055,147 | 0.1% |
Totally okay with splitting the prize pool :)
author | emrebeyler |
---|---|
permlink | re-juliank-re-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180121t090901645z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2018-01-21 09:09:00 |
last_update | 2018-01-21 09:09:15 |
depth | 3 |
children | 0 |
last_payout | 2018-01-28 09:09:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.042 HBD |
curator_payout_value | 0.012 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 46 |
author_reputation | 448,528,959,341,273 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 31,059,518 |
net_rshares | 5,242,140,338 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
turbot | 0 | 5,242,140,338 | 100% |
You're so nice for commenting on this post. For that, I gave you a vote!
author | rewardpoolrape |
---|---|
permlink | rewardpoolrape-re-juliankre-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180120t220742503z |
category | contest |
json_metadata | "" |
created | 2018-01-20 22:17:09 |
last_update | 2018-01-20 22:17:09 |
depth | 3 |
children | 1 |
last_payout | 2018-01-27 22:17:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 3.864 HBD |
curator_payout_value | 0.748 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 73 |
author_reputation | 13,131,002,358,031 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,963,589 |
net_rshares | 404,968,905,547 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
nextgen11 | 0 | 237,301,594 | 100% | ||
nextgen10 | 0 | 237,301,596 | 100% | ||
nextgen1 | 0 | 356,102,510 | 100% | ||
nextgen12 | 0 | 237,301,591 | 100% | ||
nextgen6 | 0 | 206,282,752 | 100% | ||
nextgen2 | 0 | 309,654,335 | 100% | ||
nextgen13 | 0 | 237,301,588 | 100% | ||
nextgen7 | 0 | 206,282,750 | 100% | ||
nextgen3 | 0 | 309,654,353 | 100% | ||
nextgen16 | 0 | 237,225,161 | 100% | ||
yomamasofat | 0 | 206,274,502 | 100% | ||
charlesmanson | 0 | 826,569,026 | 100% | ||
jacktheripper | 0 | 413,033,376 | 100% | ||
jeffreydahmer | 0 | 413,037,469 | 100% | ||
berniesanders | 0 | 8,997,039,302 | 14% | ||
chatterbox | 0 | 206,334,896 | 100% | ||
nextgencrypto100 | 0 | 206,282,765 | 100% | ||
nextgencrypto | 0 | 2,405,415,895 | 14% | ||
nextgencrypto120 | 0 | 206,282,758 | 100% | ||
nextgencrypto110 | 0 | 206,282,761 | 100% | ||
nextgencrypto111 | 0 | 206,282,759 | 100% | ||
nextgencrypto101 | 0 | 206,282,763 | 100% | ||
nextgencrypto121 | 0 | 206,282,755 | 100% | ||
theterrorist | 0 | 206,353,147 | 100% | ||
theghost | 0 | 206,332,556 | 100% | ||
danknugs | 0 | 46,313,557,453 | 14% | ||
elchapo | 0 | 413,041,595 | 100% | ||
muhammad | 0 | 237,220,407 | 100% | ||
indica | 0 | 413,106,180 | 100% | ||
kimjongun | 0 | 118,610,710 | 100% | ||
liquidity | 0 | 109,467,105 | 100% | ||
the.bot | 0 | 10,550,897,762 | 14% | ||
ozchartart | 0 | 6,804,157,778 | 14% | ||
thebotkiller | 0 | 1,101,640,273 | 100% | ||
theconnoisseur | 0 | 95,188,788 | 100% | ||
thecurator | 0 | 95,188,786 | 100% | ||
thecyclist | 0 | 29,692,816,770 | 14% | ||
illbeyourfriend | 0 | 1,041,970,675 | 100% | ||
engagement | 0 | 874,272,911 | 14% | ||
iflagtrash | 0 | 159,855,720,602 | 14% | ||
theyeti | 0 | 29,120,262,238 | 14% | ||
thedumpster | 0 | 2,282,783,643 | 100% | ||
yougotflagged | 0 | 410,431,377 | 100% | ||
randomthoughts | 0 | 736,915,843 | 14% | ||
thedelegator | 0 | 788,392,441 | 14% | ||
thesloth | 0 | 16,292,430,749 | 14% | ||
ghettodweller | 0 | 1,827,734,326 | 100% | ||
ngc | 0 | 44,645,170,646 | 14% | ||
rewardpoolrape | 0 | 32,422,055,147 | 0.1% | ||
surfknasen | 0 | 1,033,376,382 | 100% |
Ooh, you're right! I do leave the newlines on everything... Maybe some people are ok with their posts getting longer every now and then.
author | maxg |
---|---|
permlink | re-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t233154640z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2018-01-19 23:31:57 |
last_update | 2018-01-19 23:31:57 |
depth | 2 |
children | 1 |
last_payout | 2018-01-26 23:31:57 |
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 | 140 |
author_reputation | 5,859,582,764,121 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,733,744 |
net_rshares | 0 |
author | emrebeyler |
---|---|
permlink | re-maxg-re-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180120t001444100z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2018-01-20 00:14:45 |
last_update | 2018-01-20 00:14:45 |
depth | 3 |
children | 0 |
last_payout | 2018-01-27 00:14:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.070 HBD |
curator_payout_value | 0.011 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 55 |
author_reputation | 448,528,959,341,273 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,740,193 |
net_rshares | 7,468,877,544 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
turbot | 0 | 6,678,127,696 | 100% | ||
maxg | 0 | 790,749,848 | 100% |

author | heimdallr |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t221058782z |
category | contest |
json_metadata | {"tags":["contest"],"image":["https://steemitimages.com/DQmZFRLhFe2c4BbmyyFn24MG8JBq7mmfJZBkXnuoh6WVtHP/Screen%20Shot%202018-01-16%20at%2012.27.13%20PM.png","https://steemitimages.com/DQmTdwcdBjC892pDDzrozr5AZmFLeUbfUe7kgrquj29GNsZ/votes.png"],"app":"steemit/0.1"} |
created | 2018-01-19 22:10:57 |
last_update | 2018-01-19 22:10:57 |
depth | 1 |
children | 0 |
last_payout | 2018-01-26 22:10:57 |
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 | 268 |
author_reputation | 55,332,952,004 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,721,160 |
net_rshares | 528,672,314 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
cephalopod | 0 | 528,672,314 | 100% |
Gotta beat out @emrebeyler 😜 https://gist.github.com/maxwellgerber/0d34d019098c4c0f71b8e5eca9b1f5e2
author | maxg |
---|---|
permlink | re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t222605063z |
category | contest |
json_metadata | {"tags":["contest"],"users":["emrebeyler"],"links":["https://gist.github.com/maxwellgerber/0d34d019098c4c0f71b8e5eca9b1f5e2"],"app":"steemit/0.1"} |
created | 2018-01-19 22:26:06 |
last_update | 2018-01-19 22:26:06 |
depth | 1 |
children | 2 |
last_payout | 2018-01-26 22:26:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.150 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 100 |
author_reputation | 5,859,582,764,121 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,723,709 |
net_rshares | 13,777,471,968 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
juliank | 0 | 13,777,471,968 | 1% |
damn! :)
author | emrebeyler |
---|---|
permlink | re-maxg-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t223209871z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2018-01-19 22:32:09 |
last_update | 2018-01-19 22:32:09 |
depth | 2 |
children | 0 |
last_payout | 2018-01-26 22:32:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.046 HBD |
curator_payout_value | 0.011 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 8 |
author_reputation | 448,528,959,341,273 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,724,745 |
net_rshares | 5,573,921,372 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
turbot | 0 | 5,573,921,372 | 100% |
You are quick! I will check it tomorrow. Looks good, going to bed now
author | juliank |
---|---|
permlink | re-maxg-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t222822240z |
category | contest |
json_metadata | {"tags":["contest"],"app":"steemit/0.1"} |
created | 2018-01-19 22:28:21 |
last_update | 2018-01-19 22:28:21 |
depth | 2 |
children | 0 |
last_payout | 2018-01-26 22:28:21 |
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 | 69 |
author_reputation | 117,823,071,447,502 |
root_title | "Daily Steem-Python Challenge #7, Win 1 Steem!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,724,110 |
net_rshares | 855,413,852 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
maxg | 0 | 855,413,852 | 100% |