Installation

The easiest way is to run:

sudo gem install rbmediawiki

Examples

Retrieve all links pointing to a page

#coding: utf-8
require 'rbmediawiki'

mysite = Api.new(nil, nil, 'chabbot', 'http://es.wikipedia.org', 'http://es.wikipedia.org/w/api.php')

mygen  = Page_generator.new(mysite)

mygen.alllinks("japon├ęs"){|rv|
    puts rv.title
    puts rv.get
}