Skip to main content

A parser and downloader for Pokémon VGC tournament data from rk9.gg

Project description

Data-Pokemon-VGC

A Python package to download and parse Pokémon VGC tournament data from rk9.gg, including players, pairings, and team details.

Features

  • Download tournament data by tournament code
  • Extract players and their teams with detailed Pokémon info
  • Save data as JSON files in a structured format
  • Command-line interface for easy usage

Installation

pip install Data-Pokemon-VGC

Or clone the repo and install locally:

git clone https://github.com/Rxdsilver/Data-Pokemon-VGC.git
cd Data-Pokemon-VGC
pip install .

Usage

Run this script to download tournament:

python -m scripts.download_tournament 'RK9_Code'

Run this script to get usage:

python -m scripts.compute_usage 'RK9_Code'

This will download tournament info, players, pairings, and teams, and save JSON files in the data/ directory named with the tournament code.

Project Structure

├── scripts/
   └── download_tournament.py   # Main entry point CLI script
├── tournament_parser/
   ├── models.py                # Data classes for Tournament, Player, Team, etc.
   ├── parser.py                # Parsing logic from HTML pages
   ├── utils.py                 # Helper functions (e.g. URL builders)
   └── save.py                  # Functions to save JSON data
├── data/                       # Output JSON files saved here
├── tests/                      # Unit tests

Development & Tests

  • Python 3.11+
  • Use pytest to run tests

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

data_pokemon_vgc-0.2.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

data_pokemon_vgc-0.2.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file data_pokemon_vgc-0.2.0.tar.gz.

File metadata

  • Download URL: data_pokemon_vgc-0.2.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for data_pokemon_vgc-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e73254f6a8f51f13fb3ec6cb1c74a994029cce8f6532acdfe90301f1903338e7
MD5 53db98fc58ed43d77bf10f8010b631d5
BLAKE2b-256 689265d85ecbd3c7be11cbc863b7b9f1067752ee9e29b02e61084b158f07730a

See more details on using hashes here.

File details

Details for the file data_pokemon_vgc-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for data_pokemon_vgc-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3078e1a5b15993b738bf48e068f00eca071a64c1e8b61982ce37ad70fe092350
MD5 1520af6ee0eec1c0f4c364aeeb618c37
BLAKE2b-256 06a39f69e0c8c97033add2cbcf97c2218f1318532c3a6b3a03b5dd2b41f4535e

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