Tagging using the Flickr API

June 11, 2007

My goal for the day was to geotag the mongage images I uploaded last week. Luckily each image title contains the latitude and longitude of the camera so I extracted the data from the title and added it back in the image tags.

Here is what I did:

  1. Got a Flickr API key and authentication code from the Flickr services website.
  2. Installed Beej’s Python Flickr API.
    1. Downloaded and extracted archive.
    2. Called python setup.py build.
    3. Called python setup.py install.
    4. Edited flickrapi.py to properly call firefox from the Windows command line (added double quotes around the URL in validateFrob).
  3. Wrote a python script to extract the title, parse it, and upload the new tags (I started with the test script Beej provides).
    1. It took a while to realize I needed to include both the method and auth_token parameters for the photo.setLocation and photo.addTags methods.

Entry Filed under: information technology, programming, social software. .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


About me

Hello, I'm Nathan Jacobs and you are looking at my blog. I am a doctoral candidate in Computer Science at Washington University in St. Louis focusing on Computer Vision. My research is in algorithms to improve the ability of computer to reason about the natural world. I also really like to make attractive and informative visualizations of complex data.

I currently update my flickr site much more frequently than this blog.

RSS twitter

Category Cloud

computer vision friend information retrieval information technology knowledge management landscaping machine learning math mozilla noise personal programming research site admin social software teaching travel ultimate frisbee usability web standards

friend

links

papers

Top Posts

Flickr Photos

Smooth

View from Mill Club 405

View from Mill Club 405

Rainbow Sunrise

Why can't I turn left?

More Photos