Git Product home page Git Product logo

espnfantasyfootball's People

Contributors

tbryan2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

espnfantasyfootball's Issues

2017 and Prior Seasons

No issues whatsoever for 2018-2022, but starting in 2017 the ability to pull data seems to break for me. I suspect this is due to some API change on ESPN's part prior to that season, or perhaps their available data only extends back five seasons.

Have you found this to be the case for you?

Thanks!

image
image

Unable to get league data

Starting in Week 8 of the 2023 season (Oct 24, 2023), I've been unable to use the get_league_data function. I'm seeing a "KeyError: 'location'" error when trying to pull information about any of my 3 leagues. Up until this point, things had been working perfectly. Thank you!

Terminal output

File "C:\Users\MYUSERNAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\espnfantasyfootball\espnfantasyfootball.py", line 206, in get_league_data
self.load_team_names(week)
File "C:\Users\MYUSERNAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\espnfantasyfootball\espnfantasyfootball.py", line 150, in load_team_names
team_location.append(team_json['teams'][team]['location'])

Issue with pulling matchup data

ufunc 'add' did not contain a loop with signature matching types (dtype('float64'), dtype('<U1')) -> None
File "/Users/mitchellgay/Documents/GitHub/FantasyOdds/FantasyLines.py", line 10, in
matchup_data = league.get_matchup_data()
^^^^^^^^^^^^^^^^^^^^^^^^^
numpy.core._exceptions._UFuncNoLoopError: ufunc 'add' did not contain a loop with signature matching types (dtype('float64'), dtype('<U1')) -> None

I keep getting this error when using espn.get_matchup_data()

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.