espn-api icon indicating copy to clipboard operation
espn-api copied to clipboard

Unable to access league data for 2018 season

Open ntellakula opened this issue 1 year ago • 1 comments

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

ntellakula avatar Sep 10 '23 23:09 ntellakula

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

Robert-litts avatar Dec 12 '23 05:12 Robert-litts