All the data is recorded in a MySQL database.
The main scripts consist of the following:
- GetTodaysHorseRaceRunners.php - This pulls in the event information via the free API and sticks them into a temporary table in the database. It also scrapes the TimeForm race card for additional information.
- SessionManagement.php - As the various scripts are running most of the day, this keeps the session alive.
- GetPreOffPrices.php - This records the pre-off prices for each race at one minute intervals from 5 mins out.
- GetBetfairData.php - This downloads the horse race results for the previous day, copies that data into the database and calculates the 8 lowest recorded odds in running. This provides very useful analysis material for a number of strategies such as 'Lay The Field'.
These four scripts are scheduled to run automatically at set times each day. The first runs in the morning, collecting all the data used by subsequent scripts. The 2nd and 3rd fire up ten minutes before the first scheduled race and continue until the last race of the day. The 4th runs late in the evening.
There's a whole host of other scripts that I do not run all the time, including one for finding course specialists and potential dobbers as well as the one for displaying the graph for each runner in a race as discussed in an earlier post.
Though all these scripts are in a usable state for me, many of them would need 'tidying up' before I made them available to the public.
I'm proposing to sell these scripts as well as the database design. First though, I need to establish if there's any interest. If not, then there's no need for me to think about tidying things up for public release.
Please let me know by posting a comment below. If the interest is there I'll be encouraged to get them prepared for release and subsequent sale in two or three months.