Skip to main content
The 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:
  1. Fetch qualifying results for specific rounds
  2. Handle rate limiting automatically
  3. Save qualifying data to race directories
  4. 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:
The data structure varies based on the qualifying format used. Modern races use Q1/Q2/Q3 fields, while older races may have different structures or no data at all.

Logging Configuration

Events

Creates the base directory structure

Race Results

Fetch race results for comparison

Standings

Calculate championship points next