Pywikibot

From Wikimedia Belgium
Jump to navigation Jump to search
Language: English

Pywikibot is a way to automatically edit Wikimedia projects, via automated Python scripts.

It requires (advanced) programming skills.

Prerequisites[edit]

You can access Pywikibot via a local shell script, or via PAWS (web interface).

Shell script PAWS Jupyter notebook
  • Design program logic
  • Write a script

Remark:

  • PAWS is much simpler to implement (you can concentrate on the Python coding; you do not need to setup a Linux client)

Credentials[edit]

Either:

  • Local password in special configuration file
  • OAuth (SUL single signon)

Example script[edit]

Optional[edit]

  • Bot account; this is a user account with a bot flag, that allows for high transaction rates, and high volumes

Alternatives[edit]

A combination of:

This solution could be much simpler to use (does not require programming, or installing, and configuring tools). Can be used as a prototype, or a proof of concept for a more complicated tool. But it incurs (more) manual operations, and possibly human errors.

Related tools[edit]

See also[edit]