Skip to content

michaelenger/gb-api-mirror

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GB API Mirror

Downloads the content from the Giant Bomb API and stores it locally as JSON files.

Screenshot of the script downloading video shows, videos, promos, and reviews

Requirements

  • Python 3.12+
  • An API key from Giant Bomb

Usage

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>

Options

  • --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

Development

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 .

About

Python script for downloading the contents of the Giant Bomb API and saving it as JSON files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%