10

I'm just starting with mwclient. I'm going to create bots to query our MediaWiki database and make small revisions.

But I cannot find anywhere a simple list of python commands like how to get ages of pages, contents of categories, contents of pages, etc.

Does anyone know a good starters resource?

Peter O.
  • 32,158
  • 14
  • 82
  • 96

4 Answers4

3

The official docs at https://github.com/mwclient/mwclient/wiki have some introductory tutorials. I'm in charge for documentation for mwclient but haven't had enough time to really expand them - could use help from anyone who is willing.

James Whiteley
  • 3,363
  • 1
  • 19
  • 46
Chiara Coetzee
  • 4,201
  • 1
  • 24
  • 20
2

One of my colleagues just sent me a link to the MediaWiki API wiki page.

  • 1
    I've been playing with `mwclient` for some weeks now and, weirdly, this is a pretty good advice — maybe I'm missing some python documentation command, but `help()` only shows the defaults, the API page shows all the possible values. – njsg Mar 06 '12 at 14:38
1

I currently use python+urllib for API queries, and mwclient whenever I need to edit/create a page.

An useful place to get started with mwclient (read/edit/create a page):

http://brianna.modernthings.org/article/134/write-api-enabled-on-wikimedia-sites

Sal9K
  • 71
  • 1
  • 3
0

The Bot Manual also has tons of good info and links, e.g. creating a bot.