<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Data Unbound &#187; Flickr</title>
	<atom:link href="http://blog.dataunbound.com/category/flickr/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dataunbound.com</link>
	<description>Helping organizations access and share data effectively.  Special focus on web APIs for data integration.</description>
	<lastBuildDate>Sat, 12 Feb 2011 21:00:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
  <link>http://blog.dataunbound.com</link>
  <url>http://blog.dataunbound.com/wp-content/plugins/favicon-manager/dataunbound.ico</url>
  <title>Data Unbound</title>
</image>
		<item>
		<title>Getting started with flickrapi</title>
		<link>http://blog.dataunbound.com/2009/01/01/getting-started-with-flickrapi/</link>
		<comments>http://blog.dataunbound.com/2009/01/01/getting-started-with-flickrapi/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 21:40:31 +0000</pubDate>
		<dc:creator>Raymond Yee</dc:creator>
				<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Flickr API]]></category>
		<category><![CDATA[flickrapi]]></category>

		<guid isPermaLink="false">http://blog.dataunbound.com/?p=248</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Getting+started+with+flickrapi&amp;rft.aulast=Yee&amp;rft.aufirst=Raymond&amp;rft.subject=Flickr&amp;rft.subject=Python&amp;rft.source=Data+Unbound&amp;rft.date=2009-01-01&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://blog.dataunbound.com/2009/01/01/getting-started-with-flickrapi/&amp;rft.language=English"></span>
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 = [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Getting+started+with+flickrapi&amp;rft.aulast=Yee&amp;rft.aufirst=Raymond&amp;rft.subject=Flickr&amp;rft.subject=Python&amp;rft.source=Data+Unbound&amp;rft.date=2009-01-01&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://blog.dataunbound.com/2009/01/01/getting-started-with-flickrapi/&amp;rft.language=English"></span>
<p>Based on reading the  <a href="http://stuvel.eu/flickrapi/documentation/">Python FlickrAPI</a>, I wrote a simple example using the flickrapi library:</p>
<pre>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 = photo.attrib['id']
            secret = photo.attrib['secret']
            server_id = photo.attrib['server']
            farm_id = photo.attrib['farm']
            user_id = photo.attrib['owner']
            # calculate the thumbnail URL and photo URL
            # http://www.flickr.com/services/api/misc.urls.html
            thumbnail_url = "http://farm%s.static.flickr.com/%s/%s_%s_t.jpg" \
                            % (farm_id, server_id, id, secret)
            photo_url = "http://www.flickr.com/photos/%s/%s"  % (user_id, id)
            print thumbnail_url, photo_url</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.dataunbound.com/2009/01/01/getting-started-with-flickrapi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

