Search code examples
djangoflickr

Django - Flickr feed without sync


I want to show the latest 8 images from a Flickr photostream using Django. I've had a good google and the only articles I can find focus on syncing the results with a database. I'd rather not do this if possible, I just want to show the images and nothing else.

http://code.djangoproject.com/wiki/FlickrIntegration This page has some adaptable code, but the library he uses seems to be offline now.

Does anyone have any examples of how I might integrate with a flickr stream without syncing the results?


Solution

  • Why can't you just use the flickr API from Python? There's probably python packages to do it. All you do is get the user's photostream info, map the photos to URLS:

    http://www.flickr.com/services/api/flickr.people.getPhotos.html

    Then your Django template just has an <img> tag with the right URL.

    Edit: python packages listed on the flickr API page:

    http://stuvel.eu/flickrapi

    http://code.google.com/p/flickrpy/