Skip to content

Repository files navigation

SoccerData

Downloads Per MonthPyPIPython VersionLicenseRead the documentation at https://soccerdata.readthedocs.io/TestsCodecovpre-commitBlack

SoccerData is a collection of scrapers to gather soccer data from popular websites, including 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.

importsoccerdataassd# Create a scraper class instance for the 2018/19 Premier Leaguefive38=sd.FiveThirtyEight('ENG-Premier League', '1819')
# Fetch datagames=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.

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.

About

⛏⚽ Scrape soccer data from Club Elo, ESPN, FBref, FiveThirtyEight, Football-Data.co.uk, SoFIFA and WhoScored.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages