<?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>Saurabh Sahni &#187; downloader</title>
	<atom:link href="http://www.saurabhsahni.com/tag/downloader/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saurabhsahni.com</link>
	<description>Mashing up the web</description>
	<lastBuildDate>Fri, 01 Jul 2011 16:35:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Flickr Downloader</title>
		<link>http://www.saurabhsahni.com/2008/04/flickr-downloader/</link>
		<comments>http://www.saurabhsahni.com/2008/04/flickr-downloader/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 11:37:39 +0000</pubDate>
		<dc:creator>saurabhsahni</dc:creator>
				<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[downloader]]></category>
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://www.saurabhsahni.com/?p=8</guid>
		<description><![CDATA[Yesterday, a friend of mine was looking for a way to download original photos from one of his sets on flickr. Since we could not find any flickr downloader which can run on Linux, (for windows you can try : http://flickrslideshow.fateback.com/), I quickly wrote a script using flickr APIS. The sed and awk power made [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, a friend of mine was looking for a way to download original photos from one of his sets on <a href="http://www.flickr.com">flickr</a>. Since we could not find any flickr downloader which can run on Linux, (for windows you can try : <a href="http://flickrslideshow.fateback.com/">http://flickrslideshow.fateback.com/</a>), I quickly wrote a script using <a href="http://www.flickr.com/services/api/">flickr APIS</a>. The sed and awk power made it v. easy <img src='http://www.saurabhsahni.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Below is the script:</p>
<p><em>SET=&#8221;&lt;Set &#8211; id &gt;&#8221; # Enter SET ID here from which photos have to be downloaded, for eg. SET=&#8221;72157604130281022&#8243;<br />
APPKEY=&#8221;" #Your APP key here, get one from http://www.flickr.com/services/api/keys/<br />
curl &#8220;http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&amp;<br />
api_key=$APPKEY&amp;photoset_id=$SET&amp;extras=original_format&amp;per_page=500&#8243; | sed &#8216;~s/title=&#8221;[a-zA-Z0-9_ <img src='http://www.saurabhsahni.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ?(.]*//g&#8217; | awk &#8216;/id=/ {print &#8220;http://farm3.static.flickr.com/&#8221;$4&#8243;/&#8221;$2&#8243;_&#8221;$8&#8243;_o.jpg&#8221; }&#8217;  | sed  &#8216;~s/\(server=\|originalsecret=\|id=\|&#8221;\)//g&#8217; &gt; p<br />
wget -i p<br />
rm p<br />
</em></p>
<p>You can also download this script by <a href="http://www.saurabhsahni.com/wp-content/uploads/2008/06/flickrdownloadersh.txt">clicking here</a></p>
<p>Update: Script does not work for video download.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saurabhsahni.com/2008/04/flickr-downloader/feed/</wfw:commentRss>
		<slash:comments>1133</slash:comments>
		</item>
	</channel>
</rss>

