Skip to content

[FBref] 403 Forbidden error #879

@MikeTrusky

Description

@MikeTrusky

Describe the bug
A call to sd.FBref results with "HTTPError: 403 Client Error: Forbidden".

Affected scrapers
This affects the following scrapers:

  • FBref

Code example

import soccerdata as sd

fbref = sd.FBref(leagues='ENG-Premier League', seasons='24/25', no_cache=True)

print(fbref.read_schedule())

Error message

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://fbref.com/en/comps/

Metadata

Metadata

Assignees

No one assigned

    Labels

    FBrefIssue or pull request related to the FBref scraperbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions