Skip to main content

A data scraper for UFC stats and odds.

Project description

https://github.com/balaustrada/ufcscraper/actions/workflows/python--app.yml/badge.svg https://readthedocs.org/projects/ufc-scraper/badge/?version=latest https://coveralls.io/repos/github/balaustrada/ufcscraper/badge.svg?branch=main https://github.com/balaustrada/ufcscraper/actions/workflows/mypy.yml/badge.svg

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 in UFC statistics model while the one for BestFightOdds odds can be found in BestFightOdds model.

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.

Credits

The methods for scraping UFC stats data are derived from the ones in https://github.com/remypereira99/UFC-Web-Scraping.

Disclaimer

This repository is for educational purposes only. The author does not promote, encourage, support, or excite any illegal activity or hacking without written permission. The author and this repository are not responsible for any misuse of the information provided.

The software and scripts provided in this repository should only be used for educational purposes. The author cannot be held responsible for any misuse by users.

The author is not responsible for any direct or indirect damage caused due to the use of the code provided in this repository. All the information provided here is for educational purposes only.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ufcscraper-0.2.1.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ufcscraper-0.2.1-py3-none-any.whl (82.3 kB view details)

Uploaded Python 3

File details

Details for the file ufcscraper-0.2.1.tar.gz.

File metadata

  • Download URL: ufcscraper-0.2.1.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ufcscraper-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b35e3abf09f704d885cc93efa5e6a1f0db63373657123ed279085c1c2af25356
MD5 268b439d8bc3bdc08912ba3f08876b3f
BLAKE2b-256 31c07ef583616b7e7de179382686b366a0f193c60b8937782ab7ab0ccf12d691

See more details on using hashes here.

File details

Details for the file ufcscraper-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ufcscraper-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 82.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ufcscraper-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c3c56c0ec07f27fa81bae6ccab6aa975339c0b673bb62394961cf19ebb354c2
MD5 607a0666fcc0b5d71d3049b53b6b117b
BLAKE2b-256 b2c68a53a1e4305b0b4bd2b216027d5251299b967530d2fbccd3cbec3c4b01ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page