Replies: 2 comments 2 replies
-
When initiating the league object use a previous year. I believe 2 or 3
years ago ESPN completely revamped their API so you might not be able to go
farther back than that.
…On Tue, Sep 7, 2021 at 10:20 PM djt89 ***@***.***> wrote:
Hello All,
I was wondering if there was a way to grab all historical public league
data? If not, has anyone tried to find a way to do this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#233>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWGOWKR3RQJU5QLCNMTXFDUA3B5XANCNFSM5DTUCG7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
You can go through each year your league has been active and get most of the data. Like @dtcarls said ESPN changed their API a couple years ago so some features won't work like from espn_api.football import League
league_id = 1234
for i in range(2015, 2022):
league = League(league_id, year=i)
print(league.teams) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello All,
I was wondering if there was a way to grab all historical public league data? If not, has anyone tried to find a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions