welcome!
You can use the task scheduling library for python call schedule
(documentation here). With it you can schedule the tasks to be performed, as well as organize the duration and sequence. You can schedule tasks by specific times, days of the week, month, year, etc. You can also set different intervals and use other triggers to trigger the task.
The advantage of using the python
rather than solutions such as Cron
and the Windows task scheduler, for example, is not having to rewrite the script. There are also cases where the OS does not support the resource. There is also the advantage of, as I have already said, scheduling tasks that are NOT ONLY running time. You’re also more comfortable with the questions of timezones and interactions with language resources.
Anyway, this is it.
(Thank you who commented on the post and asked me to improve the response).
Good luck and good studies!
Have you heard of scheduled Windows tasks?
– Woss