This package uses ESPN's Fantasy Football API to extract data from any public or private league. I am currently using this package for my leagues personal website and I plan to keep updating and adding features.
Please feel free to make suggestions, bug reports, and pull request for features or fixes!
This package was inspired and based off of rbarton65/espnff.
With Git:
git clone https://github.com/cwendt94/ff-espn-api
cd ff-espn-api
python3 setup.py install
With pip:
pip install ff_espn_api
For usage and API details head over to the Wiki!
python3 setup.py nosetests
If you find a bug follow the steps below for reporting.
-
Open a new issue with a brief description of the bug for the title
-
Run the application in debug mode to view ESPN API request's and response's
from ff_espn_api import League league = League(league_id=1245, year=2019, debug=True)
The application will print all requests and the response from ESPN's API in the console. I would suggest piping the console output to a text file as it will be a lot of data.
-
Find the last log before the crash and copy it in the issue descrption with the line number of the crash or possible bug.
-
Submit the new issue!
I will try to comment on the issue as soon as possible with my thoughts and possible fix!