Skip to main content

A Python wrapper for the Giantbomb API.

Project description

GiantBomb-Redux

A modern Python wrapper for the Giantbomb API. Forked from xupisco's initial API wrapper and since (poorly) rewritten for Python 3.7.

Please use it to make cool stuff, and feel free to slide into the issue tracker if you have suggestions for improvements. Pull requests welcome!

Get your API Key at https://giantbomb.com/api/

Usage:

import giantbomb  
gb = giantbomb.Api('YOUR_KEY', 'YOUR_USER_AGENT')

Examples:

from giantbomb import giantbomb
gb = giantbomb.Api('<YOUR API KEY>', 'API test')

# Search for games
search_results = gb.search('Jet Set Radio')
print(search_results)
# Outputs: [<20096: Jet Grind Radio>, <12117: JSRF: Jet Set Radio Future>, <40601: JetSet Secrets>, <17531: Jet Set Willy: Online>, <42406: Radio the Universe>, <5005: Jet Set Willy>, <2633: Jet>, <46238: Jet-Getters>, <73975: SoulSet>, <47155: Jet Gunner>]

# Get Game data
game_data = gb.get_game(20096)
print(game_data)
# Outputs: 

# List Platforms
platforms = gb.list_platforms()
print(platforms)
# Outputs: [<1: Amiga>, <3: Game Boy>, <4: Game Boy Advance>, <5: Game Gear>...]

# Get a specific platform
platform = gb.get_platform(37)
print(platform)
# Outputs: <37: Dreamcast>

# List genres
genres = gb.list_genres()
print(genres[0])
# Outputs: Genre(id=1, guid='3060-1', name='Action'...

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

giantbomb_redux-1.0.6-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page