Comments (5)
Hello!
Thanks for taking interest in espnff
! As you stated, ESPN doesn't support a public API. I happened to find the URL of their private API and was able to gather data in json format that way. Can you provide me with the steps you used to try to install espnff
? What doesn't work?
from espnff.
I did a pypi install and cloned the repo, both gave me the same error. However, it was specific to my league. When I tried another league it worked great! Here is the error I received
Traceback (most recent call last):
File "playground.py", line 2, in <module>
league = espnff.League(203986,2016)
File "/usr/local/lib/python2.7/dist-packages/espnff/espnff.py", line 30, in __init__
self._fetch_league()
File "/usr/local/lib/python2.7/dist-packages/espnff/espnff.py", line 54, in _fetch_league
self._fetch_settings(data)
File "/usr/local/lib/python2.7/dist-packages/espnff/espnff.py", line 80, in _fetch_settings
self.settings = Settings(data)
File "/usr/local/lib/python2.7/dist-packages/espnff/espnff.py", line 195, in __init__
self._fetch_tie_rules(data)
File "/usr/local/lib/python2.7/dist-packages/espnff/espnff.py", line 253, in _fetch_tie_rules
self.playoff_seed_tie_rule = playoff_tie_map[playoff_id]
KeyError: -1
So my next question is... were you able to find any other URLs other than leagueSettings and scoreboard? Specifically, were you able to find a way to access json data for a Fantasy teams lineup, whether it's a current lineup or lineups from prior matchups?
from espnff.
Sorry for being MIA on this for a bit - it looks like I'm going to have to find a way to populate classes with an exception rule.
I'm going to continue working on reverse engineering the API, I haven't exactly found those specific endpoints yet, however I'm sure they're out there.
from espnff.
Looks like the map I had for playoff_seed_tie_rule
wasn't correct. I fixed it locally and am running tests before releasing a patch.
from espnff.
This is fixed in new v1.3.1. Closing issue.
from espnff.
Related Issues (20)
- Service Unavailable HOT 3
- KeyError: 'tradeDeadline' in leagues with no trade deadline HOT 5
- Private leagues HOT 16
- What is the .mov in the example? HOT 1
- Request: Power rankings take week as optional argument. HOT 2
- Roster endpoint HOT 11
- Will the `player` endpoints be added anytime soon? HOT 7
- Meaning of power rankings
- Number of bye week teams
- Download all stats
- Adapt To Baseball
- Unable to fetch League HOT 2
- PyPI Not updated to latest version?
- Typo HOT 1
- Private League Auth HOT 1
- Unable to Pull Roster Information
- Power Rankings Break for Leagues with Deleted Members
- Bit of a noob, got this all working properly but unsure how to format/export data to excel sheet or a usable format
- issue with scoreboard HOT 1
- ESPN Fantasy platform updates broke JSON parsing? HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espnff.