Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 830 Bytes

README.md

File metadata and controls

15 lines (8 loc) · 830 Bytes

FootB-stats

A python web-scraping code to get football championship statistics. Results are discussed in my blog

The code scraps data from the wikipedia pages of European tournaments (Serie A, Premier League, La Liga, Ligue 1, Bundesliga) and gets some interesting statistics out of it.

  • FootB.py contains the functions necessary for the web-scraping bit;

  • stats.py uses the functions in FootB.py to create the stacked table (pandas dataframe) with the data;

  • This python notebook contains a tutorial and some usage examples.

The code relies on BeautifulSoup, Pandas, numpy and seaborn (for some plots only).