r/learnpython • • Nov 29 '20

Python script to be automatically executed once per day

Hi all,

I have a very simple script that it scrapes data from a website. Ideally, I need to be executed once per day. Do you have any idea how could I achieve that? As it isn't something official, I need something for free.

Thanks!
PS I mean something online. I know about cron tabs etc.

322 Upvotes

120 comments sorted by

View all comments

7

u/barcodemerge Nov 29 '20

If you’re on Windows have task scheduler run your script. If you’re on Linux set up a cron job. Obviously running this on your local machine means it needs to be powered on and connected all the time. If that’s not possible there are cheap vm available from linode, aws or even azure. Good luck!