forked from MediaWiki-Bot/MediaWiki-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Setting the wiki
Mike.lifeguard edited this page Aug 13, 2011
·
1 revision
$bot->set_wiki('de.wikipedia.org', 'w');
Set what wiki to use. $host
is the domain name (en.wikipedia.org); $path
is the path before api.php (usually 'w'); $protocol
is either 'http' or 'https'.
The default settings are 'en.wikipedia.org' with a path of 'w'. You can also pass a hashref using keys with the same names as these parameters. To use the secure server:
$bot->set_wiki(
protocol => 'https',
host => 'secure.wikimedia.org',
path => 'wikipedia/meta/w',
);