You have scratched the website [url removed, login to view]
Create a free account on the site;
The first PHP script to run in CLI must fill a mysql database and include all the information available for a date (all the races, but also the contents of the csv files of each race);
example: $ php [url removed, login to view] 2018-05-01
If the data is existing in the mysql table for that date, it must be updated.
The 2nd php script (not in CLI) is used to generate a CSV file, with configurable filters for each column of the mysql database with entries (checkbox, == text,> = text, <= text)