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.0.tar.gz (57.3 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.0-py3-none-any.whl (82.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ufcscraper-0.2.0.tar.gz
  • Upload date:
  • Size: 57.3 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.0.tar.gz
Algorithm Hash digest
SHA256 10aedb30b63d04c2131d5762f47f8980ce510e88acab1683a4941ec67d936752
MD5 d36b8e1032fffdecc225df44fa111027
BLAKE2b-256 a2dc7f92b33ae1951d60846e9f4b0140b75620aeff6cd692db8477087e6aa635

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ufcscraper-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 82.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b88c6eecf1a10432d978f098b98908c10811cfbe465f732e0d25895760d6ee11
MD5 cb54b443a9e5a3c324bc79ef521d26d4
BLAKE2b-256 5f8979a65e95133222742ac587ef092debe196716ca0fe75be81ea1f0dd832af

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