A repository with scraping code and soccer dataset from understat.com
UNDERSTAT – SHOTS DATASET
As many people interested in soccer analytics know, Understat is an amazing source of information. They provide Expected Goals (xG) stats for every shot taken in the top 5 leagues in Europe, as well as the Russian league.
After watching an awesome tutorial by McKay Johns (great channel btw, loads of resources for beginners in soccer analytics), I decided to write some code to scrape all the shots data available at Understat. As a consequence I managed to generate this dataset, containing shots data of season 2014/2015, up to every match played in the 2020/2021 season, for the top division on the following countries:
England – EPL
Spain – La Liga
Germany – Bundesliga
Italy – Serie A
France – Ligue 1