Skip to content

Instantly share code, notes, and snippets.

@matthewhughes
Created July 4, 2013 10:12
Show Gist options
  • Save matthewhughes/5926541 to your computer and use it in GitHub Desktop.
Save matthewhughes/5926541 to your computer and use it in GitHub Desktop.
def main():
favs = flickr.walk(tags="kittens", extras="geo")
for photo in favs:
if photo.get('latitude') != '0':
title = photo.get('title')
latitude = float(photo.get('latitude'))
longitude = float(photo.get('longitude'))
url = shorturl.url(photo.get('id'))
identity = photo.get('id')
submit_to_scraperwiki(identity, title, latitude, longitude, url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment