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)

Publishing to PyPy

https://packaging.python.org/en/latest/tutorials/packaging-projects/

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.9.tar.gz (7.7 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.9-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pcs-utils-0.0.9.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.5

File hashes

Hashes for pcs-utils-0.0.9.tar.gz
Algorithm Hash digest
SHA256 e40c3324e0e3145bcd8c3d7c9c2352735e3180afb86fb42b83ef1d620dfe6794
MD5 79c8b6e1a62d623d62cc47dd0070e7d9
BLAKE2b-256 63cd52df0eb27c1decc78e1e60acc7b06c7970ed58175bd2d205b4700201302a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pcs_utils-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.5

File hashes

Hashes for pcs_utils-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6cf02be4f82944f1a4171380e4b60e168bc3fae3f92b9342df93bb77c101c5a0
MD5 bff3252431ad5cc83aa597fe2cbbaf27
BLAKE2b-256 85f1fece4b21e5d7eb84d96310a88b91a7f2bb5f9c2022f92d08c90c5bf2a617

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