Whenever I have a task that needs automation, python is my goto language. This is due to its simplicity and versatility. Python is extremely powerful for this application and even more so when combined with a utility such as cron.
Cron is a software utility that allows us to schedule tasks (cronjobs) to run periodically, at fixed times or at pre-determined intervals. These tasks can serve any desired function. Some common applications include periodically backing up user data or calling an API endpoint.