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.6.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.6.tar.gz.
File metadata
- Download URL: pcs-utils-0.0.6.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 |
fe2e0a484b530bc37dc8a9c2e66518809d0c0c7261e56aa4f6dfa80c2b942f0f
|
|
| MD5 |
3a329cb7c55d755d06367327f6c1f15d
|
|
| BLAKE2b-256 |
1341db17b2f719f07e7fd3d5ec2531c89853fb52a5f9bbf9fe468080103faff2
|
File details
Details for the file pcs_utils-0.0.6-py3-none-any.whl.
File metadata
- Download URL: pcs_utils-0.0.6-py3-none-any.whl
- Upload date:
- Size: 8.6 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 |
a256390859ccc930b11d2d6ce854cda40d550d75622bb2d9ba8a7d92e127406d
|
|
| MD5 |
f1a7b2722b9f334c25a212008485f991
|
|
| BLAKE2b-256 |
b870b215d5ec6bbfcc442e2c2819aacb2923a3cdf577b0747a9e2f7360ea70f0
|