Skip to content

Instantly share code, notes, and snippets.

@jackperry
Created October 29, 2012 02:26
Show Gist options
  • Save jackperry/3971082 to your computer and use it in GitHub Desktop.
Save jackperry/3971082 to your computer and use it in GitHub Desktop.
GiantBomb Image Download
import urllib
import giantbomb
gb = giantbomb.Api('apikeyhere')
for num in range(1,41000):
try:
game = gb.getGame(num)
for key, value in dict.items(game.image):
if key == "super_url":
super_img = str(value)
image = urllib.URLopener()
imageFilename = "images/"+str(game.id)+".png"
image.retrieve(super_img, imageFilename)
except Exception, error:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment