As I explained in my last post, Yahoo! claims their Firehose is a real-time streaming API and it’s not. So to make life a bit easier for app developers I wrote a python wrapper that provides a continuous blocking interface to the Flickr polling API. Effectively it emulates a streaming API by stringing together frequent requests to the flickr.photos.getRecent results. And it’s dead simple.
import PyFlickrStreamr fs = PyFlickrStreamr('your_api_key_here', extras=['date_upload','url_m']) for row in fs: print str(row['id'])+" "+row['url_m']
You can download the package from pypi or fork the source code on github. Have fun.