F1 API - livef1.api
¶
Functions¶
- livef1.api.download_data(season_identifier: int = None, location_identifier: str = None, session_identifier: str | int = None)[source]¶
Downloads and filters F1 data based on the provided season, location, and session identifiers.
- Parameters:
- season_identifier
int
The unique identifier for the F1 season. This is a required parameter.
- location_identifier
str
The location (circuit or country name) for filtering meetings (races).
- session_identifier
str
The session name (e.g., ‘FP1’, ‘Qualifying’) or key (integer) to filter a specific session within a meeting.
- season_identifier
- Returns:
- dict
The filtered dataset containing the requested season, meeting, or session data.
- Raises:
- livef1Exception
Raised if any of the required parameters are missing or if no matching data is found.
Examples
print("Hello World")