create account

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

View this thread on: hive.blogpeakd.comecency.com
· @steempytutorials · (edited)
$7.60
Daily Steem-Python Challenge #7, 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_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)!
👍  , , , , , , , , , , , , , , ,
properties (23)
authorsteempytutorials
permlinkdaily-steem-python-challenge-7-win-1-steem
categorycontest
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"}
created2018-01-19 22:08:33
last_update2018-01-23 15:19:09
depth0
children12
last_payout2018-01-26 22:08:33
cashout_time1969-12-31 23:59:59
total_payout_value7.524 HBD
curator_payout_value0.075 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,788
author_reputation31,094,047,689,691
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,720,725
net_rshares691,262,246,738
author_curate_reward""
vote details (16)
@emrebeyler ·
$0.23
[My solution](https://gist.github.com/emre/a02ef7c3314c95cf720c5b84c8431d9a)

I found an error on your solution so sending mine. @maxg 😎
👍  ,
properties (23)
authoremrebeyler
permlinkre-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t224301635z
categorycontest
json_metadata{"tags":["contest"],"users":["maxg"],"links":["https://gist.github.com/emre/a02ef7c3314c95cf720c5b84c8431d9a"],"app":"steemit/0.1"}
created2018-01-19 22:43:03
last_update2018-01-19 22:43:03
depth1
children7
last_payout2018-01-26 22:43:03
cashout_time1969-12-31 23:59:59
total_payout_value0.220 HBD
curator_payout_value0.005 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length136
author_reputation448,528,959,341,273
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,726,308
net_rshares20,853,156,425
author_curate_reward""
vote details (2)
@amosbastian ·
$0.05
O damn, I can see a rivalry starting!
👍  
properties (23)
authoramosbastian
permlinkre-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t225214270z
categorycontest
json_metadata{"tags":["contest"],"app":"steemit/0.1"}
created2018-01-19 22:52:15
last_update2018-01-19 22:52:15
depth2
children0
last_payout2018-01-26 22:52:15
cashout_time1969-12-31 23:59:59
total_payout_value0.040 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length37
author_reputation174,473,586,900,705
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,727,739
net_rshares4,867,570,332
author_curate_reward""
vote details (1)
@juliank · (edited)
$0.37
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 ;)
👍  ,
properties (23)
authorjuliank
permlinkre-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180120t220742503z
categorycontest
json_metadata{"tags":["contest"],"app":"steemit/0.1"}
created2018-01-20 22:07:42
last_update2018-01-20 22:09:24
depth2
children3
last_payout2018-01-27 22:07:42
cashout_time1969-12-31 23:59:59
total_payout_value0.350 HBD
curator_payout_value0.024 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length421
author_reputation117,823,071,447,502
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,962,111
net_rshares33,152,830,213
author_curate_reward""
vote details (2)
@emrebeyler · (edited)
$0.05
Totally okay with  splitting the prize pool :)
👍  
properties (23)
authoremrebeyler
permlinkre-juliank-re-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180121t090901645z
categorycontest
json_metadata{"tags":["contest"],"app":"steemit/0.1"}
created2018-01-21 09:09:00
last_update2018-01-21 09:09:15
depth3
children0
last_payout2018-01-28 09:09:00
cashout_time1969-12-31 23:59:59
total_payout_value0.042 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length46
author_reputation448,528,959,341,273
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id31,059,518
net_rshares5,242,140,338
author_curate_reward""
vote details (1)
@rewardpoolrape ·
$4.61
properties (23)
authorrewardpoolrape
permlinkrewardpoolrape-re-juliankre-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180120t220742503z
categorycontest
json_metadata""
created2018-01-20 22:17:09
last_update2018-01-20 22:17:09
depth3
children1
last_payout2018-01-27 22:17:09
cashout_time1969-12-31 23:59:59
total_payout_value3.864 HBD
curator_payout_value0.748 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length73
author_reputation13,131,002,358,031
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,963,589
net_rshares404,968,905,547
author_curate_reward""
vote details (50)
@maxg ·
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.
properties (22)
authormaxg
permlinkre-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t233154640z
categorycontest
json_metadata{"tags":["contest"],"app":"steemit/0.1"}
created2018-01-19 23:31:57
last_update2018-01-19 23:31:57
depth2
children1
last_payout2018-01-26 23:31:57
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_length140
author_reputation5,859,582,764,121
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,733,744
net_rshares0
@emrebeyler ·
$0.08
No worries mate, I will give you 12 hours next time. :P
👍  ,
properties (23)
authoremrebeyler
permlinkre-maxg-re-emrebeyler-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180120t001444100z
categorycontest
json_metadata{"tags":["contest"],"app":"steemit/0.1"}
created2018-01-20 00:14:45
last_update2018-01-20 00:14:45
depth3
children0
last_payout2018-01-27 00:14:45
cashout_time1969-12-31 23:59:59
total_payout_value0.070 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length55
author_reputation448,528,959,341,273
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,740,193
net_rshares7,468,877,544
author_curate_reward""
vote details (2)
@heimdallr ·
![Screen Shot 2018-01-16 at 12.27.13 PM.png](https://steemitimages.com/DQmZFRLhFe2c4BbmyyFn24MG8JBq7mmfJZBkXnuoh6WVtHP/Screen%20Shot%202018-01-16%20at%2012.27.13%20PM.png)![votes.png](https://steemitimages.com/DQmTdwcdBjC892pDDzrozr5AZmFLeUbfUe7kgrquj29GNsZ/votes.png)
👍  
properties (23)
authorheimdallr
permlinkre-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t221058782z
categorycontest
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"}
created2018-01-19 22:10:57
last_update2018-01-19 22:10:57
depth1
children0
last_payout2018-01-26 22:10:57
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_length268
author_reputation55,332,952,004
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,721,160
net_rshares528,672,314
author_curate_reward""
vote details (1)
@maxg ·
$0.15
Gotta beat out @emrebeyler 😜

https://gist.github.com/maxwellgerber/0d34d019098c4c0f71b8e5eca9b1f5e2
👍  
properties (23)
authormaxg
permlinkre-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t222605063z
categorycontest
json_metadata{"tags":["contest"],"users":["emrebeyler"],"links":["https://gist.github.com/maxwellgerber/0d34d019098c4c0f71b8e5eca9b1f5e2"],"app":"steemit/0.1"}
created2018-01-19 22:26:06
last_update2018-01-19 22:26:06
depth1
children2
last_payout2018-01-26 22:26:06
cashout_time1969-12-31 23:59:59
total_payout_value0.150 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length100
author_reputation5,859,582,764,121
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,723,709
net_rshares13,777,471,968
author_curate_reward""
vote details (1)
@emrebeyler ·
$0.06
damn! :)
👍  
properties (23)
authoremrebeyler
permlinkre-maxg-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t223209871z
categorycontest
json_metadata{"tags":["contest"],"app":"steemit/0.1"}
created2018-01-19 22:32:09
last_update2018-01-19 22:32:09
depth2
children0
last_payout2018-01-26 22:32:09
cashout_time1969-12-31 23:59:59
total_payout_value0.046 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length8
author_reputation448,528,959,341,273
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,724,745
net_rshares5,573,921,372
author_curate_reward""
vote details (1)
@juliank ·
You are quick! I will check it tomorrow. Looks good, going to bed now
👍  
properties (23)
authorjuliank
permlinkre-maxg-re-steempytutorials-daily-steem-python-challenge-7-win-1-steem-20180119t222822240z
categorycontest
json_metadata{"tags":["contest"],"app":"steemit/0.1"}
created2018-01-19 22:28:21
last_update2018-01-19 22:28:21
depth2
children0
last_payout2018-01-26 22:28:21
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_length69
author_reputation117,823,071,447,502
root_title"Daily Steem-Python Challenge #7, Win 1 Steem!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,724,110
net_rshares855,413,852
author_curate_reward""
vote details (1)