2026-05-30 19:46:32 +01:00
|
|
|
from pcslive import LiveStats
|
|
|
|
|
import time
|
|
|
|
|
|
|
|
|
|
stats = LiveStats()
|
|
|
|
|
|
2026-05-30 20:52:47 +01:00
|
|
|
# if there are live races...
|
2026-05-30 19:46:32 +01:00
|
|
|
if len(stats.races) > 0:
|
|
|
|
|
race = stats.races[0]
|
|
|
|
|
|
|
|
|
|
race.get_situation_long()
|
|
|
|
|
|
2026-05-30 20:52:47 +01:00
|
|
|
# whats the situation? :)
|
2026-05-30 19:46:32 +01:00
|
|
|
for x in race.situation_long:
|
|
|
|
|
print(x, race.situation_long[x])
|