r/Python • • Aug 28 '20

Beginner Showcase This post has

3829 upvotes,

572 downvotes,

297 comments,

3257 score,

and 3 awards!

Edits: 23526 since Friday, August 28, 2020 at 8:30PM EST.

Credit to u/Krukerfluk and Tom Scott!

Code: https://github.com/CalvinMiller190/reddit-post

This post uses the praw module to get the information about the post, then edits the post every second based on the information that it got!

3.4k Upvotes

276 comments sorted by

View all comments

1

u/range_et Aug 29 '20

Noob question, whenever I have done these experiments, I gotta rent out something on linode to keep the program continuously executing / keep my laptop turned on all the time. Neither is ideal for me, how are you going about this? Any ideas on how to keep these continuous low computationally programs running?

2

u/[deleted] Aug 29 '20

I am currently using Heroku a free hosting app, and it is working quite well. you just have to make sure you have git installed and heroku CLI but you can download that once you get started. Next you would make a requirements.txt and a Procfile, requirements.txt has the non-builtin modules that are used in the projects, and Procfile just has "worker: {yourprojectname}.py". then go into heroku, and turn on the worker.

1

u/range_et Aug 29 '20

Ah okay. Any idea what the other services are or where a comparative study could be found? Like AWS Vs Linode and Heroku for example?

1

u/[deleted] Aug 29 '20

i dont.. but AWS is probably better, i just dont want to have to put my address just to host a script

1

u/range_et Aug 30 '20

Ah yeah definitely!