A web scraper for ProCyclingStats.com, available in both Rust and Python.
This project provides tools to scrape professional cycling race data from ProCyclingStats, including:
- Individual race results and details
- Cyclist race history and results
- UCI WorldTour and ProSeries circuits
- Stage races and general classifications
Python bindings with Rust backend for high performance.
pip install pcs-webscraperSee the Python README for details.
Native Rust library with async support.
[dependencies]
pcs-webscraper = "0.1.0"See the Rust README for details.
Python:
from pcs_webscraper import Race
race = Race("paris-roubaix", 2024, None)
race.scrape()
print(f"Winner: {list(race.results.items())[0]}")Rust:
let mut race = Race::new("paris-roubaix".to_string(), 2024, None);
race.scrape().await?;
println!("Results: {} riders", race.results.len());MIT