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 the main script with the tournament code:

python -m scripts.download_tournament 'RK9_URL'

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.1.2.tar.gz (6.0 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.1.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for data_pokemon_vgc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4a159654b91d5a74f1bc64210c01267cf638c1aa8ad67eaf127a5a4e21184bbb
MD5 b64ffb947ab8506a2f3722b48190e8db
BLAKE2b-256 73385b0d7f5ae2bd9859803bc7229ebf466ad125db3972d838b25e7c9afa5ddd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for data_pokemon_vgc-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0866694c2adf16cbd9e0ee7deea5788efb198dbee5220be1b60216520038bf51
MD5 03b616472827b4d404c40d37c2f9ab3d
BLAKE2b-256 525be286a8f6162f3d005872743fcc57a6b776bb82091ad74319b85e8de00453

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