Skip to content

ESPN Fantasy API. Works with ESPN's new v3 endpoint! (Football, Basketball)

License

Notifications You must be signed in to change notification settings

iWHOswald/espn-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codecov Join the chat at https://gitter.im/ff-espn-api/community PyPI version

ff-espn-api -> espn-api

ESPN API

ff_espn_api will be transitioning to espn_api! espn_api will have all of the features that ff_espn_api has just different import syntax and folder structure. espn_api will now be supporting multiple ESPN fantasy sports starting with basketball!

ff_espn_api version 1.8.9 will still be avaiable but will no longer be updated. To get the newest updates switch over to espn_api!

This package uses ESPN's Fantasy API to extract data from any public or private league for Fantasy Football and Basketball.
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.

Installing

With Git:

git clone https://github.com/cwendt94/espn-api
cd espn-api
python3 setup.py install

With pip:

pip install espn_api

Usage

# Football API
from espn_api.football import League
# Basketball API
from espn_api.basketball import League
# Init
league = League(league_id=222, year=2019, username='username', password='password')

For more usage and API details head over to the Wiki!

Run Tests

python3 setup.py nosetests

Issue Reporting

If you find a bug follow the steps below for reporting.

  1. Open a new issue with a brief description of the bug for the title. In the title also add which sport (Football or Basketball)

  2. Run the application in debug mode to view ESPN API request's and response's

    # ... import statement above
    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.

  3. Find the last log before the crash and copy it in the issue descrption with the line number of the crash or possible bug.

  4. Submit the new issue!

I will try to comment on the issue as soon as possible with my thoughts and possible fix!

About

ESPN Fantasy API. Works with ESPN's new v3 endpoint! (Football, Basketball)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%