https://github.com/zigai/hearthstone-leaderboards-scraper
Hearthstone leaderboards scraper
https://github.com/zigai/hearthstone-leaderboards-scraper
hearthstone hearthstone-battlegrounds hearthstone-leaderboards hearthstone-leaderboards-scraper
Last synced: about 1 year ago
JSON representation
Hearthstone leaderboards scraper
- Host: GitHub
- URL: https://github.com/zigai/hearthstone-leaderboards-scraper
- Owner: zigai
- License: mit
- Created: 2024-12-18T17:15:27.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-31T11:32:15.000Z (over 1 year ago)
- Last Synced: 2025-02-10T15:19:26.165Z (over 1 year ago)
- Topics: hearthstone, hearthstone-battlegrounds, hearthstone-leaderboards, hearthstone-leaderboards-scraper
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hearthstone leaderboards scraper
# Installation
```
pip install git+https://github.com/zigai/hearthstone-leaderboards-scraper.git
```
# Usage
```
usage: hs-leaderboards-scraper [-h] [-d] [-u] [-p] [-m] [-o] [-n] [-b] GAME-MODE REGION SEASON-ID
Scrapes leaderboard data for specified game mode, region and season.
positional arguments:
GAME-MODE Hearthstone game mode [choices: BATTLEGROUNDS, BATTLEGROUNDS_DUO, STANDARD, WILD, ClASSIC, MERCEANARY, ARENA, TWIST] (*)
REGION Leaderboards region [choices: EUROPE, AMERICAS, ASIA_PACIFIC] (*)
SEASON-ID Season ID [type: str] (*)
options:
-h, --help show this help message and exit
-d, --delay The delay between retries in seconds [type: float, default=1]
-u, --user-agent The User-Agent string to use for requests [type: str?]
-p, --proxy The proxy URL to use for requests [type: str?]
-m, --max-retries The maximum number of retries for failed requests [type: int, default=3]
-o, --output-dir The directory to save scraped data [type: str?]
-n, --num-pages Maximum number of pages to scrape, scrapes all available pages by default [type: int?]
-b, --bg-min-rating Minimum player rating threshold for Battlegrounds modes. Once a player below this rating is found, scraping stops [type: int, default=0]
```