For code examples, check the examples.py file.
Importing:
from FRScraper import FRScraper
Functions:
Gets the current ranking from a given league.
Parameters:
league: Desired league (one of'ENG','ESP','FRA','ITA','BRA','POR','GER','HOL','ARG','POL','KSA','RUS').
Gets the current teams from a given league.
Parameters:
league: Desired league (one of'ENG','ESP','FRA','ITA','BRA','POR','GER','HOL','ARG','POL','KSA','RUS').
Gets the performance for the last n games for all teams from the selected league.
Parameters:
league: Desired league (one of'ENG','ESP','FRA','ITA','BRA','POR','GER','HOL','ARG','POL','KSA','RUS').n_games: Number of games, integer.
Gets the performance for the last n games for a particular team from the selected league.
Parameters:
league: Desired league (one of'ENG','ESP','FRA','ITA','BRA','POR','GER','HOL','ARG','POL','KSA','RUS').team: Desired team from the selected league.n_games: Number of games, integer.
Gets all scores so far from the current season from a given league.
Parameters:
league: Desired league (one of'ENG','ESP','FRA','ITA','BRA','POR','GER','HOL','ARG','POL','KSA','RUS').
Gets the next n games for all teams from the selected league.
Parameters:
league: Desired league (one of'ENG','ESP','FRA','ITA','BRA','POR','GER','HOL','ARG','POL','KSA','RUS').n: Number of games, integer.