ClubElo

class ScraperFC.clubelo.ClubElo

Bases: object

scrape_date(date: str) DataFrame

Scrape ELO scores on specific date

Parameters:

date (str) – Date to scrape data for. Date should be in YYYY-MM-DD format.

Raises:
  • TypeError – If date is not a string.

  • ValueError – If date is not a valid date in YYYY-MM-DD format.

Return type:

pd.DataFrame

scrape_fixtures() DataFrame

Scrape upcoming fixtures

See http://clubelo.com/API for more info on what kind of data is returned.

Return type:

pd.DataFrame

scrape_team(team: str) DataFrame

Scrape team data

Parameters:

team (str) – Team name to scrape data for.

Raises:
  • TypeError – If team is not a string.

  • Exception – If no data is found for the team.

Return type:

pd.DataFrame

scrape_team_on_date(team: str, date: str) float

Scrape ELO score of a team on a specific date

Parameters:
  • team (str) – Team name to scrape data for.

  • date (str) – Date to scrape data for. Date should be in YYYY-MM-DD format.

Raises:
  • TypeError – If any of the parameters are the wrong type.

  • ValueError – If the date is not a valid date in YYYY-MM-DD format.

  • Exception – If no data is found for the team on the specified date.

Return type:

float