Skip to main content

A Python package for scraping ATP tennis rankings.

Project description

🎾 ATP Tennis Scraper

license pypi

ATP Tennis Scraper is a Python package that fetches and displays the top ATP-ranked players from the official ATP Tour website. The scraper extracts player rankings, names, points, age, and nationality.


📦 Installation

To install the package, simply run:

pip install atp-tennis-scraper

Usage

To get all urls use:

from atp_tennis_scraper import display_top_10

display_top_10()

Running Tests

To run the tests locally:

  1. Clone the repository:
git clone https://github.com/Semne77/atp_tennis_scraper.git
cd atp-tennis-scraper
  1. (Optional but recommended) Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the tests from the project root directory (the folder containing tests/ and atp_tennis_scraper/):
pytest -q

On the first run, HTTP responses will be recorded using VCR.
Subsequent runs will replay recorded responses (no internet connection required).

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

atp_tennis_scraper-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

atp_tennis_scraper-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file atp_tennis_scraper-0.1.2.tar.gz.

File metadata

  • Download URL: atp_tennis_scraper-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for atp_tennis_scraper-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c50f3d208b89f9f9960f982260b3f20d29342353ec939ddb76280ad63896ce5a
MD5 bc3a04adf7ea8ab5dc49e7134388cae1
BLAKE2b-256 c23485acec9e63b0305c563e71943155b521d0db74ee72c3d5479b304f83c6e8

See more details on using hashes here.

File details

Details for the file atp_tennis_scraper-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for atp_tennis_scraper-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9743a31a8ab799d193a8040ab3ac9ec2c01f7c930802350daef426b07f9edee9
MD5 df72e0c27b45f7dd0677cfe7a80eeec7
BLAKE2b-256 6d62b9a4e7aedf9e7b5dbfcf7cf8967d83235fe720822d949fca77625caf5c4a

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