probberechts / soccerdata

⛏⚽ Scrape soccer data from Club Elo, ESPN, FBref, FiveThirtyEight, Football-Data.co.uk, FotMob, Sofascore, SoFIFA, Understat and WhoScored.
https://soccerdata.readthedocs.io/en/latest/
Other
597 stars 103 forks source link

Incorporating Understat as a Data Source #151

Closed Kalaweksh closed 7 months ago

Kalaweksh commented 1 year ago

Understat exposes data, current and historical, without any apparent restrictions on usage (i.e lacking a robots.txt) on the big 5. It has detailed data on both the player and club level, and even an unofficial API that could perhaps be integrated as a data source.

lorenzodb1 commented 1 year ago

Are there any stats you could get from understat that you couldn't get from FBref (besides the difference in the xG model used)?

Kalaweksh commented 1 year ago

Are there any stats you could get from understat that you couldn't get from FBref (besides the difference in the xG model used)?

I believe xGChain and xGBuildup, for players at least. Although I think those could be calculated from the stats FBref exposes.

There are a few more alternative stats for teams, such as a team's tempo (what is Dortmund's xG on a slow attack as opposed to their xG for a fast attack) and shot zones.

Understat is also much faster to scrape and allows users to scrape between arbitrary dates, avoiding unnecessary scraping.