WikipediaAllows you to get wikipedia content through their API. This uses the alpha API, not the deprecated query.php API type Examplespage = Wikipedia.find( 'Getting Things Done' )
=> #<Wikipedia:Page>
page.title
=> 'Getting Things Done'
page.content
=> # all the wiki markup appears here... ConfigurationThis is by default configured like this Wikipedia::Configure {
domain 'en.wikipedia.org'
path 'w/api.php'
action 'query'
properties 'content'
}Installingruby script/plugin install http://wikipedia-client.googlecode.com/svn/trunk/wikipedia Running specsif you have rspec >= 1.1.3 installed just type in rake spec Thanks! Copyright (c) 2008 Cyril David, released under the MIT license
|