Created
July 4, 2013 10:12
-
-
Save matthewhughes/5926541 to your computer and use it in GitHub Desktop.
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
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