Giter Site home page Giter Site logo

Curious about ESPN API... about espnff HOT 5 CLOSED

rbarton65 avatar rbarton65 commented on May 23, 2024
Curious about ESPN API...

from espnff.

Comments (5)

rbarton65 avatar rbarton65 commented on May 23, 2024

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.

CMorton737 avatar CMorton737 commented on May 23, 2024

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.

rbarton65 avatar rbarton65 commented on May 23, 2024

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.

rbarton65 avatar rbarton65 commented on May 23, 2024

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.

rbarton65 avatar rbarton65 commented on May 23, 2024

This is fixed in new v1.3.1. Closing issue.

from espnff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.