- Scrapes entire fantasy league history from NFL.com. It exports all standings and games as CSV files in
./output
- Aggregates standings into a single CSV file like this.
- Iterate through all games to find biggest blowouts and narrowest victories.
git clone https://github.com/PeteTheHeat/FF-Scraping
- In
constants.py
, update with your league ID and start/end years. - In
cookieString.py
, update cookie string with an active NFL.com cookie. You can find this by inspecting a request in chrome dev tools (screenshot). python scrapeStandings.py
will scrape all standings.python aggregateStandings.py
will aggregate into 1 CSV.python scrapeGamecenter.py
will scrape all games.python analyzeGamecenter.py
will find biggest blowouts and narrowest margins of victory.
- If multiple team managers have the same name, their results will be aggregated together.
- The script assumes top half of the league makes playoffs.
Inspiration reddit thread here.