cwendt94 / espn-api

ESPN Fantasy API! (Football, Basketball)
MIT License
544 stars 183 forks source link

Unable to access league data for 2018 season #466

Open ntellakula opened 10 months ago

ntellakula commented 10 months ago

Sport

Football

Summary

Looks like the ESPN API was changed in 2018 and every league was made private that year. Using the League() class I can access every year except 2018; from 2011 to 2023. Even after specifying the swid and espn_s2 cookies, 2018 cannot be accessed. I attempted to access league data using requests and specifying league parameters and the cookies and still cannot access the league. Using requests this is the response I receive:

{'messages': ['You are not authorized to view this League.'], 'details': [{'message': 'You are not authorized to view this League.', 'shortMessage': 'You are not authorized to view this League.', 'resolution': None, 'type': 'AUTH_LEAGUE_NOT_VISIBLE', 'metaData': None}]}

Are there workarounds or plans to extract 2018 data?

Logs/Data

No response

Robert-litts commented 7 months ago

This appears to be a duplicate of my issue #278. Just submitted PR #514 to address it.