Optional: good to know Step 14 of 16 on the Python Developer roadmap

Running on a schedule

Task Scheduler on Windows and cron on macOS or Linux can start your script automatically every day or every hour. Make sure the script logs its results so you know it really ran.

More in Automating everyday tasks

See it on the Python Developer roadmap