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

1

u/honzajavorek Nov 30 '20

If you have the code in a GitHub repository, you can use a GitHub Actions for that, see e.g. https://github.com/honzajavorek/czech-political-parties/blob/main/.github/workflows/scrape.yml For the crontab syntax, see https://crontab.guru/