Skip to main content

A collection of wrappers over soccer data from various websites / APIs. Modified to not fail on parsing unplaying games.

Project description

SoccerData

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

SoccerData is a collection of wrappers over soccer data from Club Elo, ESPN, FBref, FiveThirtyEight, Football-Data.co.uk, SoFIFA 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 scraper class instance for the Premier League
five38 = sd.FiveThirtyEight('ENG-Premier League', '1819')

# Fetch dataframes
games = five38.read_games()

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

Disclaimer: 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

j-owens-soccerdata-0.0.2.dev1644950218.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file j-owens-soccerdata-0.0.2.dev1644950218.tar.gz.

File metadata

  • Download URL: j-owens-soccerdata-0.0.2.dev1644950218.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for j-owens-soccerdata-0.0.2.dev1644950218.tar.gz
Algorithm Hash digest
SHA256 a628207139f47f9e89e61a36fbc1dcc2f2d851ae47a98fc06ca5afeadb60af0c
MD5 24acf840d0ab5ec915c9df3a7a10a3d1
BLAKE2b-256 345b6f0b8f5ab82093ee79bee99b9dfc9e6a193d84439d3b97c0e093a7a00167

See more details on using hashes here.

File details

Details for the file j_owens_soccerdata-0.0.2.dev1644950218-py3-none-any.whl.

File metadata

  • Download URL: j_owens_soccerdata-0.0.2.dev1644950218-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for j_owens_soccerdata-0.0.2.dev1644950218-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec3f40783f2e1e5f90d18eee367556c1919622619ce7d685354f13cf7d4b8f1
MD5 cf47bdea0ed5bcfc43003eba4b6d9bfe
BLAKE2b-256 f993c8e03a7b584af6819c449c4155215f137d0a0570338560dd76bfb4577ae8

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