<?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>Answer My Searches &#187; flickr</title>
	<atom:link href="http://www.answermysearches.com/category/flickr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.answermysearches.com</link>
	<description>Answers to everything I search for, every day</description>
	<lastBuildDate>Wed, 08 Sep 2010 10:00:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>flickr API &#8211; How to get URL of a photo</title>
		<link>http://www.answermysearches.com/flickr-api-how-to-get-url-of-a-photo/8/</link>
		<comments>http://www.answermysearches.com/flickr-api-how-to-get-url-of-a-photo/8/#comments</comments>
		<pubDate>Wed, 28 Dec 2005 14:49:54 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://www.answermysearches.com/?p=8</guid>
		<description><![CDATA[This task is not at all obvious from the documentation.  However this documentation page will get you started.
As an example, here&#8217;s a Python function I wrote that works with the Photo object returned by flickr.py (a nice flickr API library for Python):

def getPhotoURL(photo,size='o'):
    &#34;&#34;&#34;
    Create Photo URL as:

http://static.flickr.com/{server-id}/{id}_{secret}_[mstb].jpg

 [...]]]></description>
			<content:encoded><![CDATA[<p>This task is not at all obvious from the documentation.  However this <a href="http://www.flickr.com/services/api/misc.urls.html">documentation page</a> will get you started.</p>
<p>As an example, here&#8217;s a Python function I wrote that works with the Photo object returned by <a href="http://jamesclarke.info/projects/flickr/">flickr.py</a> (a nice flickr API library for Python):</p>
<pre class="Python">
def getPhotoURL(photo,size='o'):
    &quot;&quot;&quot;
    Create Photo URL as:

http://static.flickr.com/{server-id}/{id}_{secret}_[mstb].jpg

    Size Suffixes
    The letter suffixes are as follows:
    s   small square 75x75
    t   thumbnail, 100 on longest side
    m   small, 240 on longest side
    -   medium, 500 on longest side
    b   large, 1024 on longest side (only exists for very large original images)
    o   original image, either a jpg, gif or png, depending on source format
    &quot;&quot;&quot;
    return r&quot;&quot;&quot;http://static.flickr.com/%s/%s_%s_%s.jpg&quot;&quot;&quot; % (str(photo.server),str(photo.id),str(photo.secret),size)
</pre>
<p>Thanks to J Wynia for the <a href="http://www.wynia.org/wordpress/2005/12/16/5-lessons-in-getting-started-with-the-flickr-api-and-php/">help</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.answermysearches.com/flickr-api-how-to-get-url-of-a-photo/8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
