Skip to main content

Package for scraping soccer data from a variety of sources.

Project description

This is sportstat, a Python package that I hope will give more people access to soccer data. Gone are the days of downloading spreadsheets one-by-one, copy-pasting, or entering data into spreadsheets by hand. I try to make sportstat as easy-to-use as possible so that anybody with a bit of Python experience can use it.

To install sportstat, run pip install sportstat from the command line.

Data can be scraped from the following sources:

  • FBRef
    • Match and seasonal data for players and teams
  • Understat
    • Match and seasonal data for players and teams
  • FiveThirtyEight
    • Several FiveThirtyEight metrics on a match level (SPI, win probabilities, xG, NSxG, and more)
  • ClubELO
    • ELO scores for teams on a specific date
  • Capology
    • Player salary data
  • Transfermarkt
    • Market value, transfer history, market value history, and more

For documentation, head over to the GitHub's wiki page

For usage examples, look at Examples.ipynb in the code directory or some of my example analyses in the analytics_examples folder.

I'd love to hear your feedback, bugs you find, or new features you want! You can reach me via email at osmour043@gmail.com or my Twitter handle is @owen_seymour.

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

sportstat-2.0.0.tar.gz (36.1 kB view details)

Uploaded Source

File details

Details for the file sportstat-2.0.0.tar.gz.

File metadata

  • Download URL: sportstat-2.0.0.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for sportstat-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ee5871aed8d7de0940f6bd5f987daa53c32485c517c4493f1d83dc7bd3d0497b
MD5 8ac4868e89529dc3c9bd592ae253f775
BLAKE2b-256 078664c6ac4e8ee6020a6a3ba926d8d4b7e3ad1fa060c92a38cd6cb0e69d3769

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