Welcome to SoccerData#
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.
Other useful projects#
SoccerData is not the only tool of its kind. If SoccerData doesn’t quite fit your needs or you want to obtain data from other sources, we recommend looking at these tools:
worldfootballR: an R package with scrapers for FBref, Transfermarkt and Understat.
Tyrone Mings: a Python package to scrape data from TransferMarkt
understat:a Python package to scrape data from Understat
understatr: an R package to scrape data from Understat
ScraperFC: a Python package to scrape data from FBRef, Understat, FiveThirtyEight and WhoScored
Scrape-FBref-data: Python package to scrape StatsBomb data via FBref