Skip to main content

A collection of wrappers over soccer data from various websites / APIs.

Project description

SoccerData

Downloads Per Month PyPI Python Version License Read the documentation at https://soccerdata.readthedocs.io/ Tests Codecov pre-commit Black

SoccerData is a collection of scrapers to gather soccer data from popular websites, including Club Elo, ESPN, FBref, FiveThirtyEight, Football-Data.co.uk, FotMob, Sofascore, SoFIFA, Understat and WhoScored. You get Pandas DataFrames with sensible, matching column names and identifiers across datasets. Data is downloaded when needed and cached locally.

import soccerdata as sd

# Create a scraper class instance for the 2018/19 Premier League
five38 = sd.FiveThirtyEight('ENG-Premier League', '1819')

# Fetch data
games = five38.read_games()
forecasts = five38.read_forecasts()
clinches = five38.read_clinches()

To learn how to install, configure and use SoccerData, see the Quickstart guide. For documentation on each of the supported data sources, see the example notebooks and API reference.

Usage Notice: Please use this web scraping tool responsibly and in compliance with the terms of service of the websites you intend to scrape. The software is provided as-is, without any warranty or guarantees of any kind. The developers disclaim any responsibility for misuse, legal consequences, or damages resulting from its use. It is your responsibility to use the software in accordance with the laws and regulations of your jurisdiction.

Contribution and Issues: As soccerdata relies on web scraping, any changes to the scraped websites will break the package. Hence, do not expect that all code will work all the time. If you spot any bugs, then please fork it and start a pull request.

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

soccerdata-1.8.4.tar.gz (44.4 kB view details)

Uploaded Source

Built Distribution

soccerdata-1.8.4-py3-none-any.whl (57.5 kB view details)

Uploaded Python 3

File details

Details for the file soccerdata-1.8.4.tar.gz.

File metadata

  • Download URL: soccerdata-1.8.4.tar.gz
  • Upload date:
  • Size: 44.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for soccerdata-1.8.4.tar.gz
Algorithm Hash digest
SHA256 26ec2837d440f9a0311c40c17fb34700d7d9b267508f599413311ed0d22ad5ad
MD5 86d46fbd9fd52bcc7f0ce5edb0d4c398
BLAKE2b-256 4c9f1298a708f62c16cf948a8b5201a2395ca8ec7cdb6b7d68fbe71887590836

See more details on using hashes here.

File details

Details for the file soccerdata-1.8.4-py3-none-any.whl.

File metadata

  • Download URL: soccerdata-1.8.4-py3-none-any.whl
  • Upload date:
  • Size: 57.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for soccerdata-1.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0ad0ec016ef21fea16da1aafcdf6a1a373a0bc2cf887227ce99f8c0867ac1131
MD5 f87f226793d9c0a6aa8d5b7343602524
BLAKE2b-256 1b5294f19dccc732fab06ba9efb8678a81f6cc0c135b0f5020769fc4938ec322

See more details on using hashes here.

Supported by

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