2026-05-30 21:43:47 +01:00
2026-05-30 15:58:26 +00:00
2026-05-30 21:43:47 +01:00
2026-05-30 21:43:47 +01:00
2026-05-30 21:43:47 +01:00
2026-05-30 20:52:47 +01:00
2026-05-30 21:43:47 +01:00

pcs_live

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...

setup (windows)

after cloning set up a virtualenv

py -3 -m venv .venv
.venv\Scripts\activate

if you get an error while activating the virtualenv, you may need to run this first

Set-ExecutionPolicy Unrestricted -Force

install dependencies

pip install beautifulsoup4
pip install requests

usage

from pcslive import LiveStats

stats = LiveStats()
stats.print_races()
Description
scrapes procyclingstats livestats for use elsewhere
Readme 76 KiB
Languages
Python 100%