Skip to content

Instantly share code, notes, and snippets.

@jackperry
Created October 29, 2012 03:31
Show Gist options
  • Save jackperry/3971327 to your computer and use it in GitHub Desktop.
Save jackperry/3971327 to your computer and use it in GitHub Desktop.
GiantBomb Game Data Download
from __future__ import print_function
import giantbomb
gb = giantbomb.Api('fe35a7029d3d80722ab9d05d4a9a4c53e115f4f8')
f = open('games.txt', 'w')
for num in range(1,41000):
try:
game = gb.getGame(num)
print('"'+str(game.id)+'"'+',"'+str(game.name)+'","'+str(game.deck)+'"', file=f)
except Exception, error:
pass
f.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment