Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 1.4 KB

File metadata and controls

24 lines (14 loc) · 1.4 KB

Backend Data Scraper for Babiri

This is an implementation of the backend to Babiri, a Pokémon stats aggregation and visualization website for competitive VGC and OU players.

About

The main script, ShowdownDataScraper.py, is designed to be run once per day to scrape Pokémon Showdown's public ladder API for a specific format. It then saves 100 of the top publicly available teams, as well as usage data (not yet implemented), to a MongoDB database.

Also included is a bonus script, SpriteDownloader.py, that will download any missing Pokémon sprites from Showdown to the specified folder if needed for the frontend.

Getting Started

Prerequisites

To run the program, first set the 'mongoURI', 'databaseName', and 'format' fields in your environment variables to your MongoDB connection URI and database name as well as the desired Showdown format. Then simply run the main script ShowdownDataScraper.py.

Acknowledgements