
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. Fellow Steemian @maxg suggested using at 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
- Adjust the code so that it takes the filename for the
post.txtfrom the command line arguments. Then alter thepost.txtfile where the first line is thetitleof the post, the second line are thetags(separated by whitespace) and the third line is thevoting_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
If you have questions about the tutorial or the challenge then don't hesitate to comment below or contact us on Discord!
My solution
I found an error on your solution so sending mine. @maxg 😎
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 ;)
You're so nice for commenting on this post. For that, I gave you a vote!
You're so nice for commenting on this comment on this post. For that, I gave you a vote!
Totally okay with splitting the prize pool :)
O damn, I can see a rivalry starting!
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.
No worries mate, I will give you 12 hours next time. :P
Gotta beat out @emrebeyler 😜
damn! :)
You are quick! I will check it tomorrow. Looks good, going to bed now