understatapi.parsers.league module¶
League parser
-
class
understatapi.parsers.league.
LeagueParser
[source]¶ Bases:
understatapi.parsers.base.BaseParser
Parse a html page from a url of the form
https://understat.com/league/<league>/<season>
-
get_team_data
(html)[source]¶ Get data for all teams
- Parameters
html (
str
) – The html string to parse- Return type
Dict
[str
,Any
]
-
get_match_data
(html)[source]¶ Get data for all fixtures
- Parameters
html (
str
) – The html string to parse- Return type
Dict
[str
,Any
]
-
get_player_data
(html)[source]¶ Get data for all players
- Parameters
html (
str
) – The html string to parse- Return type
Dict
[str
,Any
]
-
queries
: List[str]¶
-