<?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>Edward Andrew Robinson &#187; api</title>
	<atom:link href="http://www.earobinson.org/tag/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.earobinson.org</link>
	<description>“Brilliant people simplify things, and mediocre people complicate things.” — Unknown</description>
	<lastBuildDate>Mon, 04 Oct 2010 02:12:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Mapping Wikipedia</title>
		<link>http://www.earobinson.org/2008/04/27/mapping-wikipedia/</link>
		<comments>http://www.earobinson.org/2008/04/27/mapping-wikipedia/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 22:04:23 +0000</pubDate>
		<dc:creator>Edward Andrew Robinson</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[graphviz]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[sandbox]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[wikipedia]]></category>
		<category><![CDATA[wikis]]></category>

		<guid isPermaLink="false">http://www.earobinson.org/?p=106</guid>
		<description><![CDATA[I was reading reddit the other day and stumbled upon the fact that wikipedia has an API. Neat I thought, and having some free time since my exams are now over I figured I would play around a bit with it. When I browse wikipedia I often click from link to link, and have come [...]]]></description>
			<content:encoded><![CDATA[<p>I was reading <a href="http://reddit.com/">reddit</a> the other day and <a href="http://reddit.com/info/6h7rn/comments/">stumbled upon the fact</a> that <a href="http://en.wikipedia.org/w/api.php">wikipedia has an API</a>. Neat I thought, and having some free time since my <a href="http://twitter.com/earobinson/statuses/797057597">exams are now over</a> I figured I would play around a bit with it. When I browse <a href="http://en.wikipedia.org">wikipedia</a> I often click from <a href="http://en.wikipedia.org/wiki/Hyperlink">link</a> to <a href="http://en.wikipedia.org/wiki/Hyperlink">link</a>, and have come to the conclusion that all articles are <a href="http://en.wikipedia.org/wiki/Six_degrees_of_separation">6 degrees of separation</a>. For example I can go from <a href="http://en.wikipedia.org/wiki/Ubuntu_(operating_system)">Ubuntu</a> to <a href="http://en.wikipedia.org/wiki/Tesco">Tesco</a> to <a href="http://en.wikipedia.org/wiki/Japan">Japan</a> to <a href="http://en.wikipedia.org/wiki/G8">G8</a> to <a href="http://en.wikipedia.org/wiki/United_States">United States</a> to <a href="http://en.wikipedia.org/wiki/George_W._Bush">George W. Bush</a> bet you never knew <a href="http://en.wikipedia.org/wiki/Ubuntu_(operating_system)">Ubuntu</a> was connected to <a href="http://en.wikipedia.org/wiki/George_W._Bush">George W. Bush</a>. I once wrote a <a href="http://www.earobinson.org/2007/10/15/map-of-the-internet/">map of the internet program</a> that people seemed to like to download and modify so in that spirit I wrote <a href="http://www.files.earobinson.org/wiki/wikimap.py.txt">wikimap.py</a> to map <a href="http://en.wikipedia.org">wikipedia</a>. <a href="http://www.files.earobinson.org/wiki/wikimap.py.txt">wikimap.py</a> Requires <a href="https://networkx.lanl.gov/wiki/pygraphviz">pygraphviz</a> (Install using sudo aptitude install <a href="apt://python-pygraphviz">python-pygraphviz</a>). To use the program simply run the program and give it the wiki page name for example &#8220;python <a href="http://www.files.earobinson.org/wiki/wikimap.py.txt">wikimap.py</a> <a href="http://en.wikipedia.org/wiki/Norman_Graham">Norman_Graham</a>&#8221; Note that <a href="http://en.wikipedia.org/wiki/Ubuntu_(operating_system)">Ubuntu</a> is <a href="http://en.wikipedia.org/wiki/Ubuntu_(Linux_distribution)">Ubuntu_(Linux_distribution)</a> and you can find the full name in the address bar of your browser. For more complicated maps use <a href="http://www.files.earobinson.org/wiki/wikimap.py.txt">wikimap.py</a> &#8211;help for full usage info.</p>
<p>Here are a few examples that I created with <a href="http://www.files.earobinson.org/wiki/wikimap.py.txt">wikimap.py<br />
<img class="alignnone" src="http://www.files.earobinson.org/wiki/Fulacunda-1-neato.png" alt="" /><br />
<img class="alignnone" src="http://www.files.earobinson.org/wiki/Norman_Graham-1-neato.png" alt="" width="465" height="262" /></a><br />
And a really large one being viewed in <a href="http://www.inkscape.org/">inkscape</a>.<br />
<img class="alignnone" src="http://www.files.earobinson.org/wiki/Screenshot-Fulacunda-2-neato.svg%20-%20Inkscape.png" alt="" /></p>
<p>More examples including the dot files can be found at <a href="http://www.files.earobinson.org/wiki/">http://www.files.earobinson.org/wiki/</a>. But there are a few features I would like to add:</p>
<ol>
<li>Generating the graph using <a href="apt://python-pygraphviz">python-pygraphviz</a> currently takes a really long time and I would like to be able to do it faster</li>
<li>Page links currently include templates, I would like to only use links in the body of the text</li>
<li>It would be nice if the software cached previously seen connections. (But then I need to detect updates to that page)</li>
</ol>
<p>If anyone has a nice simple soultion to any of those problems leave a comment. Also if you are able to generate any neat images I would love to see them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earobinson.org/2008/04/27/mapping-wikipedia/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

