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.pycontains the functions necessary for the web-scraping bit;
stats.pyuses the functions in
FootB.pyto 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).