This commit is contained in:
cube
2026-05-31 15:01:54 +01:00
2 changed files with 5 additions and 2 deletions

View File

@@ -4,7 +4,10 @@ scrapes procyclingstats livestats homepage and timeline
timeline updates are simply the titles, so sometimes you get something like "ranking after x km" or "present riders today from last years top 20" with no details. for now i am not getting the details from underneath, because for the most part they can be ignored. the action timeline headings like "wheel change for x rider" are good enough when they come through.
will try to get situation feed next, although it is not always visible so a challenge...
# todo
- [ ] timeline items with details
- [ ] pypi package ??
# setup (windows)

View File

@@ -13,6 +13,6 @@ if len(stats.races) > 0:
# prints in reverse so you dont have to scroll up to the most recent :P
count = len(race.timeline) - 1
for item in race.timeline:
print(item[count])
print(race.timeline[count])
print("===================")
count -= 1