This isn’t that hard, you can just automate this with a script and cron job running on a cheap Mac mini.