mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-26 10:35:53 +03:00
[GH-ISSUE #76] [FBref] Can't fetch schedule data #14
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#14
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 @BelkacemB on GitHub (Aug 17, 2022).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/76
if you run:
You will get an error
@MatsThijssen commented on GitHub (Aug 26, 2022):
This appears to still be an issue, with pretty much any fbref function. Haven't investigated much, but my best guess at the moment is further attempts by fbref to discourage webscraping. If I have time to dive deeper I will update here.
@probberechts commented on GitHub (Sep 2, 2022):
It seems indeed related to FBRef blocking bot traffic. However, soccerdata respects their policy. Since it already fails on the first request, I guess they simply block all headless traffic when the load is very high.
Most of the time, everything works just fine though. I would recommend to simply wait a bit if it does not.
@probberechts commented on GitHub (Sep 27, 2022):
@BelkacemB I just found out that your error might be caused by using cached data. Try disable caching with
If that works just delete your cache (default is at
~/soccerdata/data/FBref) and scrape all data again.FBRef recently renamed some HTML attributes. This was fixed by
1f4128bc6e. Obviously, this now creates problems if you would run the latest version on cached data which still has the old HTML attributes.