Downloads the content from the Giant Bomb API and stores it locally as JSON files.
- Python 3.12+
- An API key from Giant Bomb
Put your API key in the GB_API_KEY environment variable:
export GB_API_KEY='<your api key>'(Optional) Setup a virtual environment:
python -m venv env
source env/bin/activateInstall the dependencies:
pip install -r requirements.txtRun the script:
python gb-api-mirror.py <path to save files>--imagesAlso download the images--include RESOURCESComma-separated list of the resources to download (defaults to all)--overwrite-imagesOverwrite existing images (by default it doesn't download ones that exist)--quietSuppress all output (except errors)--skip-existingSkip over resources which have already been downloaded--verboseShow verbose output
The code is type checked with mypy and formatted with Black, so ensure they are installed:
pip install black mypyRun them both to format and type check the files:
black . && mypy .