MediaWiki::Bot is a Perl module that can be used to write bots which interface with the MediaWiki API (http://en.wikipedia.org/w/api.php).
SYNOPSIS
use MediaWiki::Bot;
my $bot = MediaWiki::Bot->new({
useragent => 'MediaWiki::Bot/3.1.6 (User:Mike.lifeguard)',
assert => 'bot',
protocol => 'https',
host => 'secure.wikimedia.org',
path => 'wikipedia/meta/w',
login_data => { username => "Mike's bot account", password => "password" },
});
my $revid = $bot->get_last("User:Mike.lifeguard/sandbox", "Mike.lifeguard");
print "Reverting to $revid\n" if defined($revid);
$bot->revert('User:Mike.lifeguard', $revid, 'rvv');
Product's homepage
Requirements:
· Perl