[Answered ]-Django – Flickr feed without sync

1👍

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/

1👍

I made Flickr Pony for use Flickr with Django Storage API and more.

You’ll only need an API KEY and launch this:

>>> from flickr_pony.storage import FlickrStorage
>>> storage = FlickrStorage(api_key="myApiKey")
>>> storage.listdir('140893176@N07')
([], ['https://farm2.staticflickr.com/1586/25309081103_518e989396_o.jpg',
 'https://farm2.staticflickr.com/1623/25911906696_84c8cf31ae_o.jpg',
 'https://farm2.staticflickr.com/1617/25637193860_98a08d224f_o.jpg',
 ...
 'https://farm2.staticflickr.com/1671/25794942526_5b54c8a908_o.jpg',
 'https://farm2.staticflickr.com/1653/25820730145_4040532d03_o.jpg'])
👤Zulu

Leave a comment