My favorites | Sign in
Project Logo
                
Code license: MIT License
Labels: ruby, plugin, wikipedia
Feeds:
People details
Project owners:
  cyx.ucron

Wikipedia

Allows you to get wikipedia content through their API. This uses the alpha API, not the deprecated query.php API type

Examples

page = Wikipedia.find( 'Getting Things Done' )

=> #<Wikipedia:Page>

page.title 

=> 'Getting Things Done'

page.content

=> # all the wiki markup appears here...

Configuration

This is by default configured like this

Wikipedia::Configure {
  domain 'en.wikipedia.org'
  path   'w/api.php'
  action 'query'
  properties 'content'
}

Installing

ruby script/plugin install http://wikipedia-client.googlecode.com/svn/trunk/wikipedia

Running specs

if you have rspec >= 1.1.3 installed just type in

rake spec

Thanks!

Copyright (c) 2008 Cyril David, released under the MIT license









Hosted by Google Code