quali_results.py script fetches qualifying results including Q1, Q2, and Q3 times for each driver.
Script Overview
Location:~/workspace/source/quali_results.py
The script uses the QualifyingResultsFetcher class to:
- Fetch qualifying results for specific rounds
- Handle rate limiting automatically
- Save qualifying data to race directories
- Log operations for monitoring
API Endpoint
Qualifying data is most complete from 1994 onwards. Earlier years may have incomplete or missing data.
QualifyingResultsFetcher Class
Initialization
Rate-Limited Requests
Fetching Qualifying Results
Main Fetch Method
Output Structure
Stored at:{year}/{race-name}/quali_results.json
Modern Format (Post-2006)
Empty Response (No Data)
For races where qualifying data is not available:Usage Example
Basic Usage
Multiple Rounds
Qualifying Data Fields
Each qualifying result contains:Only the top 15 drivers participate in Q2, and only the top 10 participate in Q3. Drivers eliminated in earlier sessions won’t have times for subsequent sessions.
Qualifying Format Evolution
The qualifying format has changed throughout F1 history:Logging Configuration
Related Scripts
Events
Creates the base directory structure
Race Results
Fetch race results for comparison
Standings
Calculate championship points next