mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-25 10:05:53 +03:00
[GH-ISSUE #905] [Understat] KeyError 'statData' on Google Colab (IP Blocking/Cloudflare) #198
Labels
No labels
ESPN
FBref
FotMob
MatchHistory
SoFIFA
Sofascore
WhoScored
WhoScored
bug
build
common
dependencies
discussion
documentation
duplicate
enhancement
good first issue
invalid
performance
pull-request
question
question
removal
understat
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/soccerdata#198
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GiorgioMerolla on GitHub (Dec 10, 2025).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/905
Describe the bug
When attempting to fetch Understat data using Google Colab, the scraper fails with a
KeyError: 'statData'.This appears to be caused by Understat blocking Google Cloud IPs (Cloudflare 403 Forbidden or Challenge Page), resulting in the scraper failing to find the expected JSON data variable.
To Reproduce
Run the following code in a standard Google Colab environment: