Skip to content

Instantly share code, notes, and snippets.

@zhenyi2697
Created September 30, 2013 10:28
Show Gist options
  • Select an option

  • Save zhenyi2697/6761931 to your computer and use it in GitHub Desktop.

Select an option

Save zhenyi2697/6761931 to your computer and use it in GitHub Desktop.
Google Data API: get image data
print 'AlbumID:', photo.albumid.text
print 'PhotoID:', photo.gphoto_id.text
if photo.exif.make and photo.exif.model:
camera = '%s %s' % (photo.exif.make.text, photo.exif.model.text)
else:
camera = 'unknown'
print 'Camera:', camera
print 'Content URL:', photo.content.src
print 'First Thumbnail:', photo.media.thumbnail[0].url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment