A python web-scraping code to get football championship statistics
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ipynb_checkpoints
figures
notebook
FootB.py
README.md
results.csv
stats.py

README.md

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).