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)
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.7.tar.gz
(7.7 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.7.tar.gz.
File metadata
- Download URL: pcs-utils-0.0.7.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
957f1a25a4c135d15e9e592208d6dde3abb6e130d353d6ca14da2ff0bc044ad6
|
|
| MD5 |
fa743f2be81ec99d40afe337c81b6d32
|
|
| BLAKE2b-256 |
667107fa1d337581c1ada00098b90cbe4f31152ed574ad3f39f32c57d13e6e91
|
File details
Details for the file pcs_utils-0.0.7-py3-none-any.whl.
File metadata
- Download URL: pcs_utils-0.0.7-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb74e56b48b5a85584f2aad3672460f2195284a679c8292f692bbfa876bb73da
|
|
| MD5 |
b58f3c5b2e6e2f0fab2d5162b16a5824
|
|
| BLAKE2b-256 |
713eb55a955ee0e00535680c9821ebd5ad92c91f4056ca857998082c476b171e
|