This is a program used to collect data from the ESPN Fantasy Football Api for ESPN fantasy leagues. More information can be found at the reddit post here.
Also huge thanks to Steven Morse for his page here where he discusses using the api and saving it as a JSON.
- Edit the global variables at the top of the main.py file
- Make sure you have all the necessary libraries installed
- Run: python3 main.py
Graphs will be stored in the graphs/ directory and box_scores.json and scoreboards.json will be saved in the main directory.
The leagueID can be found by looking at the value in the URL on your leagues page.
If your league is private, the swid and espn_s2 values can be found by looking at your cookies for espn.com (Thanks again to Steven Morse for figuring this out)