

Dynamically schedule python scripts based off dates in csv
I'm trying to figure out the best practices for the following scenario. I have a python script that grabs data from an API, processes it, and returns a data frame of results including an event name, ID (for API reference) and a Date of particular sports matches each day (this is exported to a CSV if necessary).
From this (once at the start of each day), I'd like to schedule another script to run at the start of each separate match that takes the ID as an argument (to continually pull data). These scripts occasionally will need to occur at the same time. I've looked at Cron, APScheduler, Sched, etc. but am not sure which fits this purpose (if any).
Fairly new to python and any help would be greatly appreciated,
Thanks
Python


All the solutions that you looked at will solve the problem. All of those are schedulers, Cron is a linux based solution so you may have to combine your Pythono script and output to a file or a DB, APScheduler is a Python based solution so you can combine it with your code.
Login to add comment