Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

openf1_experiment.py

A simple Python script to experiment with the openF1 API without authentication keys. This script fetches and prints some public data from the openF1 API, such as session and driver information.

Features

  • Fetches F1 session data for a specified year
  • Fetches driver data for the latest session and meeting
  • Handles API errors gracefully

Requirements

Install dependencies with:

pip install requests

Usage

Run the script directly:

python openf1_experiment.py

The script will output the number of sessions and drivers fetched from the openF1 API, and print sample data to the console.

Example Output

Fetched 0 sessions from openF1 API:
Fetched 5 drivers from openF1 API:
{'driver_number': '44', 'name': 'Lewis Hamilton', ...}
...

License

This project is for educational and experimental use.

About

Repo to experiment with the openF1 API without authentication keys. This script fetches and prints some public data from the openF1 API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages