Some utils for scraping the PCS web
Project description
Overview
Selenium scraper for fetching information from the ProCyclingStats page.
Setup
Setting up virtualenv
python3 -m pip install virtualenv
virtualenv .
source bin/activate
Installing requirements
pip install -r requirements.txt
sudo apt-get install xvfb
sudo apt-get install -y chromium-chromedriver
Usage
import pcs_scraper
pcs_scraper.scrap_teams_by_year(2021)
pcs_scraper.scrap_stage('tour-de-france', 2020, 2)
pcs_scraper.scrap_stage_gc('tour-de-france', 2020, 2)
pcs_scraper.scrap_final_gc('tour-de-france', 2021)
pcs_scraper.scrap_final_points('tour-de-france', 2021)
pcs_scraper.scrap_final_kom('tour-de-france', 2021)
pcs_scraper.scrap_final_youth('tour-de-france', 2021)
pcs_scraper.scrap_final_teams('tour-de-france', 2021)
Publishing to PyPy
https://packaging.python.org/en/latest/tutorials/packaging-projects/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pcs-utils-0.0.10.tar.gz
(7.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pcs-utils-0.0.10.tar.gz.
File metadata
- Download URL: pcs-utils-0.0.10.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
838f65893b484ef41d27321241089203e740c80b335a40af4880f8808f6febc3
|
|
| MD5 |
36850a6b613de2046feca9cb287f8425
|
|
| BLAKE2b-256 |
e4c827e994159e4992433b435d83b677f97a38efc30e6a05ef9b2fce0a638a2c
|
File details
Details for the file pcs_utils-0.0.10-py3-none-any.whl.
File metadata
- Download URL: pcs_utils-0.0.10-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c62a006387c574e12654194c26728110e65eb6ac46c7a7e25fd710a6ed238499
|
|
| MD5 |
db7e0c90973afd164335ec767033d1ed
|
|
| BLAKE2b-256 |
a8658b29873e9a56baf886cb44f5a5f6b61a16b9c6d87ddd79d07571a14e5af1
|