Initial commit.

This commit is contained in:
Stefan Härter
2023-05-08 17:00:34 +02:00
commit 99df91a112
4 changed files with 205 additions and 0 deletions

14
fastf1_connection.py Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python3
# Module Imports
import fastf1
from fastf1.ergast import Ergast
fastf1.Cache.enable_cache('/home/demiguise/f1_data_analysis/cache')
def get_driver_standings():
ergast = Ergast()
standings = ergast.get_driver_standings(season=2023)
return standings.content[0]
print(get_driver_standings())