Skip to main content

CLI Utility to extract information from Giant Bomb

Project description

## Installation Instructions

NOTE - Only tested in MacOS Mojave.

pip install sp-games

## Getting Started

First item of business is to create an API Key from [Giant Bomb](https://www.giantbomb.com/api/)

spag congfigure

## Searching

To search all games, please bear in mind that the API only responds with 100 results and there is currently no pagination.

spag search

### Additional options

-n which will be a fuzzy text lookup of the name so:

spag search -n Fallout

Providing you have a valid API key this will return some JSON with the matching game titles and GUID.

## Specific Game

To search for a specific game you need the GUID which can be got from [Search](#searching)

spag game -g 3030-20504

Will return the specific information about that game.

### Additional Options

-d will add an additional search for the DLCs for that game and return them (if any) in order of release date.

Please note if you are searching for Rock Band 2 for example there are a lot of DLCs!

spag game -g 3030-20504 -d

## Things to note

  • JSON was readable enough for this first version. This can be improved.

  • Friendly User Interaction responses in this version are not yet at a decent level, for example it will not specifically say if there are no DLCs for a game.

  • Error Handling leave a lot to be desired at this point in time.

  • The API called (being python) for getting DLC release date are not async or threaded so this should probably be done to make this faster.

  • Code duplication is currently quite high and can be refactored to be more generic.

## Potential Additions - We could add an option to pick the response type: i.e. json, text - Types of information to respond with about a game - More API integrations…

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sp_games-0.0.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file sp_games-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: sp_games-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.0

File hashes

Hashes for sp_games-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 667de5b9735d62347bcfcd9be370a63f333a43df68fcdc4a5d4219cd7964922a
MD5 41baa423ba7ee139ba79cd0ce9d05956
BLAKE2b-256 f971f1369a190124e4c6ef283ebb149ba61a608b974c3c662f17d2a739c55c49

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