mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-25 18:15:58 +03:00
[GH-ISSUE #668] [FBref] requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url #133
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#133
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 @URRealHero on GitHub (Aug 5, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/668
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for urlThis error occurs when I'm trying to scrape team_match_stats and player_match_stats.
What should I do to avoid this
@probberechts commented on GitHub (Aug 15, 2024):
It looks like FBref has increased rate limiting from twenty to ten requests per minute recently (see https://www.sports-reference.com/bot-traffic.html).
You can increase the wait between requests as such:
I will update the default.
@mhd0528 commented on GitHub (Aug 15, 2024):
The fix works! And just a suggestion when using the fbref class, if you need to scrape from multiple pages/leagues, try to initialize or check league schedule as less as you can. All the calls will first go to comps, which is usually the cause of the rate limit issue.
@URRealHero commented on GitHub (Aug 18, 2024):
THXXXXXX A Lot~