Getting started with flickrapi

Based on reading theĀ  Python FlickrAPI, I wrote a simple example using the flickrapi library: import flickrapi API_KEY = '[API_KEY]' API_SECRET = '[API_SECRET]' if __name__ == '__main__': # instantiate the flickr object with the API_KEY, SECRET to return ElementTree entities flickr = flickrapi.FlickrAPI(api_key=API_KEY,secret=API_SECRET,format='etree') photos = flickr.photos_search(user_id='73509078@N00', per_page='10') if photos.attrib['stat']: for photo in photos.find('photos').getiterator('photo'): id = […]

Tagged , , ,