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

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

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.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sp_games-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9ad6185eb751b51abab3c534da75089d63aefe8dbc3aaf4c04d49a177f942ee6
MD5 9a238f0f19ae83fc4f521e4c9023c52e
BLAKE2b-256 935dd713c66e51485a9f8bcd099ef2c0acac08c6392c82c9558d474e0ae53480

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