Merge branch 'main' of https://tea.cubes.link/cube/pcs_live
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user