Skip to main content

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


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.2.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pcs_utils-0.0.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file pcs-utils-0.0.2.tar.gz.

File metadata

  • Download URL: pcs-utils-0.0.2.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for pcs-utils-0.0.2.tar.gz
Algorithm Hash digest
SHA256 534bf2770fb7c7a1f126e8787a661e9c3661fd7f1cffaedb65aceb507a4ba446
MD5 b4b89f843ab5e6a2289dbaa6433e82c2
BLAKE2b-256 7187872b01062e555d3d7368548322ce37a90ce03e5eda8b9dc3aac2e0ed6fdf

See more details on using hashes here.

File details

Details for the file pcs_utils-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pcs_utils-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for pcs_utils-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 65fa460747a53d4c4d442a8f6bbea6c04cf91c8767fbd6aaabfbe3ac797f09ee
MD5 d82fb081f8c60e27059633cba0163a77
BLAKE2b-256 4a3dd7dc05a84f17d092ddbbbf35d6ba8bd02a507113f5d9642c3d1d39e03188

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page