Skip to main content
Module

x/mediawiki/bot/bot.ts>Bot

Modules for interacting with MediaWiki using Deno.
Latest
class Bot
import { Bot } from "https://deno.land/x/mediawiki@0.1.0/bot/bot.ts";

Constructors

new
Bot(url: string)

Properties

private
_csrftoken: string
private
writeonly
csrftoken: string
readonly
client: Client
readonly
csrftoken

Methods

category(title: string): Promise<Category>

Get a category from the wiki site.

login(botAccount: string, botPassword: string)

Login via bot account & bot password. For more information, see https://www.mediawiki.org/wiki/Special:BotPasswords.

page(title: string): Promise<Page>

Get a page from the wiki site.