Created
October 29, 2012 03:31
-
-
Save jackperry/3971327 to your computer and use it in GitHub Desktop.
GiantBomb Game Data Download
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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