项目作者: amjohnson36

项目描述 :
A project that graphs each team's points vs. their max potential points
高级语言: Python
项目地址: git://github.com/amjohnson36/FantasyGraphs.git
创建时间: 2018-10-31T19:17:39Z
项目社区:https://github.com/amjohnson36/FantasyGraphs

开源协议:MIT License

下载


Fantasy Football Graphs Repository

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.

Libraries Used

Also huge thanks to Steven Morse for his page here where he discusses using the api and saving it as a JSON.

How to Use

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

Getting the variables

The leagueID can be found by looking at the value in the URL on your leagues page.
leagueID

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)