UFC Scraper

This project is a data scraper designed to collect and process fight statistics and betting odds for UFC events. It is composed of two parts:

  1. Scraping UFC Statistics: Data from events, fights, and fighters is scraped from UFC stats and stored in CSV format.

  2. Scraping Betting Odds: Betting odds for UFC fights are scraped from BestFightOdds and matched to the correct fighters.

The data model for the UFC statistics part can be found here while the one for BestFightOdds odds can be found here.

Installation

After cloning the environment:

git clone https://github.com/balaustrada/ufcscraper.git

The code can be easily installed through participants

pip install .

Usage

Once installed, there are two entry points to be used for scraping data:

  • ufcscraper_scrape_ufcstats_data: Scrape information from UFC stats.

  • ufcscraper_scrape_bestfightodds_data: Scrape information from BestFightOdds.