This script scrapes the standings/table data from Sports.Reference.com for the following leagues:
- The Big 5 European Football Leagues (Bundesliga, La Liga, Ligue 1, Premier, Serie A)
- The CFL (1945 - 2021)
- MLB (History of all current active franchises)
- NBA (All franchises 1947 - 2021)
- NFL (History of all current active franchises)
- NHL (History of all current active franchises)
- NRL (1998 - 2021)
- NCAA Division 1 Football (Dates Vary By Conference)
- WNBA (All franchises 1997 - 2021)
Use the package manager pip to install the required libraries.
pip install -r requirements.txt
or
Using pipenv:
pipenv install
Then to get started run app.py and select the league you wish to scrape data for by entering the corresponding number.