ESPN API
Project description
ESPN API
This package uses ESPN's Fantasy API to extract data from any public or private league for Fantasy Football and Basketball (NHL, MLB, and WNBA are in development).
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
For Getting Started and API details head over to the Wiki!
# Football API
from espn_api.football import League
# Basketball API
from espn_api.basketball import League
# Hockey API
from espn_api.hockey import League
# Baseball API
from espn_api.baseball import League
# Init
league = League(league_id=222, year=2019)
Run Tests
python3 setup.py nosetests
Discussions (new)
If you have any questions about the package, ESPN API data, or want to talk about a feature please start a discussion!
Issue Reporting
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. In the title also add which sport (Football or Basketball)
-
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.
-
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file espn_api-0.43.0-py3-none-any.whl
.
File metadata
- Download URL: espn_api-0.43.0-py3-none-any.whl
- Upload date:
- Size: 66.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f44dca0f4a4242b7c1449b01e80a90eb7c883cb3acf32c1ce4fe3fca3365b7ec |
|
MD5 | 5eace040068824f8112662ad022331d2 |
|
BLAKE2b-256 | 67b396354fc6416c74d114866b975176a900c5c27478ac1c1de0cfc3b265d0ac |
Provenance
The following attestation bundles were made for espn_api-0.43.0-py3-none-any.whl
:
Publisher:
package-release.yml
on cwendt94/espn-api
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
espn_api-0.43.0-py3-none-any.whl
- Subject digest:
f44dca0f4a4242b7c1449b01e80a90eb7c883cb3acf32c1ce4fe3fca3365b7ec
- Sigstore transparency entry: 147599703
- Sigstore integration time:
- Predicate type: