<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A very rough proxy for anger at the Pope</title>
	<atom:link href="http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/</link>
	<description></description>
	<lastBuildDate>Mon, 12 Dec 2011 17:53:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Chris</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6841</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 05 Feb 2009 02:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6841</guid>
		<description>Ah, thanks.  I figured there had to be a way to do that.</description>
		<content:encoded><![CDATA[<p>Ah, thanks.  I figured there had to be a way to do that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Laniel</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6838</link>
		<dc:creator>Steve Laniel</dc:creator>
		<pubDate>Wed, 04 Feb 2009 22:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6838</guid>
		<description>Oh, and yes: Google Trends compares search volumes, not page counts. Quite so. So I *did* misunderstand.</description>
		<content:encoded><![CDATA[<p>Oh, and yes: Google Trends compares search volumes, not page counts. Quite so. So I *did* misunderstand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Laniel</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6837</link>
		<dc:creator>Steve Laniel</dc:creator>
		<pubDate>Wed, 04 Feb 2009 22:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6837</guid>
		<description>If you want to fake Google out, and have them not block urllib, I think you just need to fake the user-agent string. Try setting it to something like this:

&quot;Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008122010 Iceweasel/3.0.5 (Debian-3.0.5-1)&quot;

I think they just automatically block anything that looks like a spider. But on the Internet, no one needs to know you&#039;re a spider, you know?</description>
		<content:encoded><![CDATA[<p>If you want to fake Google out, and have them not block urllib, I think you just need to fake the user-agent string. Try setting it to something like this:</p>
<p>&#8220;Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008122010 Iceweasel/3.0.5 (Debian-3.0.5-1)&#8221;</p>
<p>I think they just automatically block anything that looks like a spider. But on the Internet, no one needs to know you&#8217;re a spider, you know?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6836</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 04 Feb 2009 21:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6836</guid>
		<description>That&#039;s kind of an amazing spike in 2005, though, isn&#039;t it?  And of course it coincides with the month he was named Pope.</description>
		<content:encoded><![CDATA[<p>That&#8217;s kind of an amazing spike in 2005, though, isn&#8217;t it?  And of course it coincides with the month he was named Pope.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6835</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 04 Feb 2009 21:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6835</guid>
		<description>Doesn&#039;t the Google Trends figure out how many times the term has been searched for?  I was looking at how many results the search returned in a given period.</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t the Google Trends figure out how many times the term has been searched for?  I was looking at how many results the search returned in a given period.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6834</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 04 Feb 2009 21:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6834</guid>
		<description>Oh cool.</description>
		<content:encoded><![CDATA[<p>Oh cool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Laniel</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6833</link>
		<dc:creator>Steve Laniel</dc:creator>
		<pubDate>Wed, 04 Feb 2009 21:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6833</guid>
		<description>Wouldn&#039;t Google Trends do the same thing?
http://www.google.com/trends?q=nazi+pope

Or maybe I misunderstand.</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t Google Trends do the same thing?<br />
<a href="http://www.google.com/trends?q=nazi+pope" rel="nofollow">http://www.google.com/trends?q=nazi+pope</a></p>
<p>Or maybe I misunderstand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben wolfson</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6832</link>
		<dc:creator>ben wolfson</dc:creator>
		<pubDate>Wed, 04 Feb 2009 21:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6832</guid>
		<description>There are officially-approved ways to do what you want, but I can&#039;t remember them. It is possible. You need an API key or whatever.</description>
		<content:encoded><![CDATA[<p>There are officially-approved ways to do what you want, but I can&#8217;t remember them. It is possible. You need an API key or whatever.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6831</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 04 Feb 2009 20:23:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6831</guid>
		<description>Oh, should have known it wouldn&#039;t be so easy to write a script to grab anything from google.  

This, as an experiment:

import urllib
html_data = urllib.urlopen(&#039;http://www.google.com/search?hl=en&amp;%3Aen-US%3Aofficial&amp;hs=wOT&amp;q=%22Nazi+Pope%22++daterange%3A2454466-2454496&amp;btnG=Search&#039;)
for line in html_data:
    print line

Gets me a long message including this:

Your client does not have permission to get URL &lt;code&gt;/search?hl=en&amp;%3Aen-US%3Aofficial&amp;hs=wOT&amp;q=%22Nazi+Pope%22++daterange%3A2454466-2454496&amp;btnG=Search&lt;/code&gt; from this server.

You can hardly blame them.  I imagine people are constantly trying to harvest info from them.</description>
		<content:encoded><![CDATA[<p>Oh, should have known it wouldn&#8217;t be so easy to write a script to grab anything from google.  </p>
<p>This, as an experiment:</p>
<p>import urllib<br />
html_data = urllib.urlopen(&#8216;http://www.google.com/search?hl=en&#038;%3Aen-US%3Aofficial&#038;hs=wOT&#038;q=%22Nazi+Pope%22++daterange%3A2454466-2454496&#038;btnG=Search&#8217;)<br />
for line in html_data:<br />
    print line</p>
<p>Gets me a long message including this:</p>
<p>Your client does not have permission to get URL <code>/search?hl=en&amp;%3Aen-US%3Aofficial&amp;hs=wOT&amp;q=%22Nazi+Pope%22++daterange%3A2454466-2454496&amp;btnG=Search</code> from this server.</p>
<p>You can hardly blame them.  I imagine people are constantly trying to harvest info from them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6830</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 04 Feb 2009 19:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6830</guid>
		<description>Thanks!  Skimming the new results and comparing them with the old results suggests that they produce roughly the same Julian dates.  But your way is much nicer.</description>
		<content:encoded><![CDATA[<p>Thanks!  Skimming the new results and comparing them with the old results suggests that they produce roughly the same Julian dates.  But your way is much nicer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben wolfson</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6829</link>
		<dc:creator>ben wolfson</dc:creator>
		<pubDate>Wed, 04 Feb 2009 19:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6829</guid>
		<description>One of the pages you link says that a Julian date is &quot;the number of days that have passed since January 1, 4713 B.C.&quot;. Trial and error suggests that this is equal to:

1721425 + (datetime.date(year,mon,day) - datetime.date(1,1,1)).days</description>
		<content:encoded><![CDATA[<p>One of the pages you link says that a Julian date is &#8220;the number of days that have passed since January 1, 4713 B.C.&#8221;. Trial and error suggests that this is equal to:</p>
<p>1721425 + (datetime.date(year,mon,day) &#8211; datetime.date(1,1,1)).days</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6828</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 04 Feb 2009 19:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6828</guid>
		<description>Or am I just being silly?</description>
		<content:encoded><![CDATA[<p>Or am I just being silly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.explananda.com/2009/02/04/a-very-rough-proxy-for-anger-at-the-pope/comment-page-1/#comment-6827</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 04 Feb 2009 19:07:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.explananda.com/?p=2875#comment-6827</guid>
		<description>It guess it wouldn&#039;t be all that hard to write a little tool that took a search string and a date range, constructed a list of appropriate urls, extracted the number of hits from the resulting pages, and then plotted hits over time.  I&#039;d want to run it from the public library though, just to be on the safe side.</description>
		<content:encoded><![CDATA[<p>It guess it wouldn&#8217;t be all that hard to write a little tool that took a search string and a date range, constructed a list of appropriate urls, extracted the number of hits from the resulting pages, and then plotted hits over time.  I&#8217;d want to run it from the public library though, just to be on the safe side.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

