A Python package for scraping ATP tennis rankings.
Project description
🎾 ATP Tennis Scraper
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:
- Clone the repository:
git clone https://github.com/Semne77/atp_tennis_scraper.git
cd atp-tennis-scraper
- (Optional but recommended) Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Run the tests from the project root directory (the folder containing
tests/andatp_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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c50f3d208b89f9f9960f982260b3f20d29342353ec939ddb76280ad63896ce5a
|
|
| MD5 |
bc3a04adf7ea8ab5dc49e7134388cae1
|
|
| BLAKE2b-256 |
c23485acec9e63b0305c563e71943155b521d0db74ee72c3d5479b304f83c6e8
|
File details
Details for the file atp_tennis_scraper-0.1.2-py3-none-any.whl.
File metadata
- Download URL: atp_tennis_scraper-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9743a31a8ab799d193a8040ab3ac9ec2c01f7c930802350daef426b07f9edee9
|
|
| MD5 |
df72e0c27b45f7dd0677cfe7a80eeec7
|
|
| BLAKE2b-256 |
6d62b9a4e7aedf9e7b5dbfcf7cf8967d83235fe720822d949fca77625caf5c4a
|