<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Using Python to Grab Images From a Web Site</title>
	<atom:link href="http://www.thinkingserious.com/2008/04/30/using-python-to-grab-images-from-a-web-site/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinkingserious.com/2008/04/30/using-python-to-grab-images-from-a-web-site/</link>
	<description>Programming, design, business and productivity content for tech entrepreneurs living in a 2.0 world.</description>
	<pubDate>Tue, 30 Sep 2008 23:27:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: ThinkingSerious</title>
		<link>http://www.thinkingserious.com/2008/04/30/using-python-to-grab-images-from-a-web-site/#comment-1360</link>
		<dc:creator>ThinkingSerious</dc:creator>
		<pubDate>Fri, 02 May 2008 22:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.thinkingserious.com/2008/04/30/using-python-to-grab-images-from-a-web-site/#comment-1360</guid>
		<description>Great example. Thanks for your contribution.</description>
		<content:encoded><![CDATA[<p>Great example. Thanks for your contribution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: btruelove</title>
		<link>http://www.thinkingserious.com/2008/04/30/using-python-to-grab-images-from-a-web-site/#comment-1359</link>
		<dc:creator>btruelove</dc:creator>
		<pubDate>Fri, 02 May 2008 17:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.thinkingserious.com/2008/04/30/using-python-to-grab-images-from-a-web-site/#comment-1359</guid>
		<description>Overkill IMO. A less trivial example is going to get large and messy quickly. What about when the XML file in on an FTP, or requires authentication, needs some cookie, has to filter downloads by file size, wants to use a proxy, spawn multiple processes and so on? A more apt tool is curl or wget (I'm lazy so I used both). Also, when you keep it at the shell it's more natural to pull in other shell commands when needed.

curl -s http://99designs.com/contests/6999/feed &#124;  grep -Po  "src=\".*(png&#124;jpg)" &#124; grep -o "http.*" &#124; xargs wget -q</description>
		<content:encoded><![CDATA[<p>Overkill IMO. A less trivial example is going to get large and messy quickly. What about when the XML file in on an FTP, or requires authentication, needs some cookie, has to filter downloads by file size, wants to use a proxy, spawn multiple processes and so on? A more apt tool is curl or wget (I&#8217;m lazy so I used both). Also, when you keep it at the shell it&#8217;s more natural to pull in other shell commands when needed.</p>
<p>curl -s <a href="http://99designs.com/contests/6999/feed" rel="nofollow">http://99designs.com/contests/6999/feed</a> |  grep -Po  &#8220;src=\&#8221;.*(png|jpg)&#8221; | grep -o &#8220;http.*&#8221; | xargs wget -q</p>
]]></content:encoded>
	</item>
</channel>
</rss>
