<?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>Mega-ZBlog &#187; opensearch</title>
	<atom:link href="http://www.mzzt.net/tag/opensearch/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mzzt.net</link>
	<description>You are here.</description>
	<lastBuildDate>Sun, 25 Jul 2010 01:16:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>OpenSearch Google in Windows 7</title>
		<link>http://www.mzzt.net/2009/01/14/opensearch-google-in-windows-7/</link>
		<comments>http://www.mzzt.net/2009/01/14/opensearch-google-in-windows-7/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 22:14:30 +0000</pubDate>
		<dc:creator>Dan Bugglin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[explorer]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[opensearch]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://www.mzzt.net/?p=143</guid>
		<description><![CDATA[I just hacked together a neat little PHP script that allows me to Google search right from Windows Explorer in Windows 7.  I was inspired by this guy.  I don&#8217;t wait around for Google, I&#8217;ll do it myself. Windows 7 introduces a new feature which allows you to add search engines right to Windows Explorer. [...]]]></description>
			<content:encoded><![CDATA[<p>I just hacked together a neat little PHP script that allows me to Google search right from Windows Explorer in Windows 7.  I was inspired by <a href="http://www.sevenforums.com/tutorials/742-windows-7-search-federation-providers.html">this guy</a>.  I don&#8217;t wait around for Google, I&#8217;ll do it myself. <img src='http://www.mzzt.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> <span id="more-143"></span></p>
<p>Windows 7 introduces <a href="http://en.wikipedia.org/wiki/Features_new_to_Windows_7#Windows_Explorer">a new feature</a> which allows you to add search engines right to Windows Explorer.  It&#8217;s not as convenient as in a web browser (the search engine is represented by a file somewhere on your computer that you download) but it works.</p>
<p>It uses the standard <a href="http://en.wikipedia.org/wiki/OpenSearch">OpenSearch</a> spec (with their own Microsoft twist, of course!) to query search engines which already conform to this standard.  Basically you can pass a script your search terms and get them back in an RSS or Atom feed which Explorer or any OpenSearch compatible client can parse and display how they like.</p>
<p>Google doesn&#8217;t offer any such feed.  So I made a PHP script to parse the HTML output Google feeds web browsers (using <a href="http://sourceforge.net/projects/simplehtmldom/">this library</a>) and spit out an OpenSearch RSS feed.  Works pretty good.</p>
<p><a href="http://x.mzzt.net/2009.01.14.17.08.40.jpg"><img class="alignnone" src="http://www.mzzt.net/garrydir/thumbs/bab168701324e80a79cb90db7706c3cd.jpg" alt="" width="200" height="100" /></a></p>
<p>Had a few annoying problems along the way&#8230; a big one was I couldn&#8217;t always get Explorer to parse it and it doesn&#8217;t tell you why.  For some reason I didn&#8217;t think to try to view the feed in Internet Explorer to get a more detailed error report.  Turns out Google pages use a different encoding than what I was marking the XML file with, and that was causing feeds with smart quotes to annoy Explorer.</p>
<p>Anyways it&#8217;s working now.  You can try it out with <a href="http://www.mzzt.net/opengoogle/Google.searchConnector-ms">this</a>.  Download and double click to have Explorer open a search window.  This DOES proxy the results through my server so don&#8217;t use that if you plan on using it regularly&#8230; <a href="http://www.mzzt.net/opengoogle/opengoogle.zip">here&#8217;s the source code</a>.  Go put it on your own server.  Just remember to change the urls in all the files to point to your server instead of mine.</p>
<p>There&#8217;s an extra file, opendescription.xml.  AFAIK it&#8217;s not NEEDED for Explorer but it&#8217;s part of the OpenSearch spec so there it is.  This should be compliant with the spec, so not just Explorer can use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzzt.net/2009/01/14/opensearch-google-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
