Exceptions

exception ScraperFC.scraperfc_exceptions.ClubEloInvalidTeamException(team: str)

Bases: Exception

Raised when an invalid team is used in the ClubElo module.

exception ScraperFC.scraperfc_exceptions.FBrefRateLimitException

Bases: Exception

Raised when FBref returns HTTP status 429, rate limit request

exception ScraperFC.scraperfc_exceptions.InvalidCurrencyException

Bases: Exception

Raised when an invalid currency is used with the Capology module.

exception ScraperFC.scraperfc_exceptions.InvalidLeagueException(league: str, module: str, valid_leagues: Sequence)

Bases: Exception

Raised when a league is not valid for a given scraping module.

exception ScraperFC.scraperfc_exceptions.InvalidYearException(year: int | str, league: str, valid_years: Sequence)

Bases: Exception

Raised when an invalid year is found

exception ScraperFC.scraperfc_exceptions.NoMatchLinksException(year: int | str, league: str, fixtures_url: str)

Bases: Exception

Raised when no match links are found