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/activate
Install the dependencies:
pip install -r requirements.txt
Run the script:
python gb-api-mirror.py <path to save files>
--images
Also download the images--include RESOURCES
Comma-separated list of the resources to download (defaults to all)--overwrite-images
Overwrite existing images (by default it doesn't download ones that exist)--quiet
Suppress all output (except errors)--skip-existing
Skip over resources which have already been downloaded--verbose
Show verbose output
The code is type checked with mypy and formatted with Black, so ensure they are installed:
pip install black mypy
Run them both to format and type check the files:
black . && mypy .