Skip to content

Program that combines and analyses bookmaker, exchange and live hourly UK and Ireland horse racing data to create daily data csv files.

License

Notifications You must be signed in to change notification settings

adamcorren/horse_racing_data_analyzer

Repository files navigation

Horse Racing Data Analyzer

Horse Racing Data Analyzer is a Python program that scrapes horse racing bookmaker and exchange data and combines this data with pre race morning hourly data. It then will analyse the data collected and produce 149 unique data points for every horse running in every race in the UK and Ireland.

These data points cover topics such as:

  • Key time morning prices (currently 1am, 6am ,10am)
  • Comparison of prices between different times and sources
  • Non runner analysis
  • Favourite and predicting position metrics
  • Analysing result of races

The program will then export daily data csv files containing data from all racing that day.

Currently used sites (more to come):

Prerequisite Software

Windows installation

You can install the prerequisites double-clicking install_prerequesites.bat after installing Python 3.

Updating Chromedriver

I will try my best to keep the included Chromedriver up to date with the latest stable version of Chrome, but sometimes I may miss an update by a few days. If you wish to update it yourself, please download the relevant version of Chromedriver from here and replace the correct file.

Program Installation

Horse Racing Data Analyzer can be installed by downloading the repository from the GitHub page

Usage

Follow the instructions for your operating system below.

Windows

Once you've installed the prerequisites, double click start_windows.bat. That's it. Bish bash bosh.

Using the program

Hourly data, stored in individual daily folders within the 'daily_data' folder will contain hourly prices scraped from the websites Sporting Life and Timeform. These will contain prices from all the major bookmakers as well as Betfair Exchange prices each hour for the 24 hours preceding the races start time. A program that collects this data can be found from the GitHub page.

The program will ask which date you want to analyse data from. This is done by asking for the year, month, day. NOTE ONLY THE DATE 2023, 7, 1 WILL WORK WITHOUT ADDITIONAL HOURLY DATA IMPORTED BY USER.

The program will then guide you through the rest of the process yourself.

Once exported, the daily data file will be stored in the 'daily_data' folder, as well as a master file named 'ALL' that will contain all data you have analysed.

Other Horse Racing repositories

Study of various price sources in the UK and Ireland horse racing markets

Study of the accuracy of price ranges and how they differ across various price suppliers in the UK and Ireland horse racing markets

Study on the impact of cross-platform discrepancies on market uncertainty in UK and Ireland horse racing markets

Study on the effect of price movements on market reliability in UK and Ireland horse racing markets

Project Report

License

Horse Racing Data Analyzer is licensed under Licensed under MIT.

The data provided is property of https://www.sportinglife.com/, https://www.timeform.com/, https://www.betfair.com/ I don't own any of the data

About

Program that combines and analyses bookmaker, exchange and live hourly UK and Ireland horse racing data to create daily data csv files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages