Initial commit.
This commit is contained in:
14
fastf1_connection.py
Executable file
14
fastf1_connection.py
Executable 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())
|
||||
Reference in New Issue
Block a user