Manual:Pywikibot/Overview/en

From Linux Web Expert

Revision as of 20:47, 8 March 2024 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Pywikibot is a Python library and collection of tools that automate work on MediaWiki sites. Originally designed for Wikipedia, it is now used throughout the Wikimedia Foundation's projects and on many other MediaWiki wikis.

The project started in 2003 and is currently on core version 9.0.0. It features full API usage and is up-to-date with new MediaWiki features and a Pythonic package layout. But it also works with older installations of MediaWiki 1.23 or higher.

Pywikibot supports Microsoft Windows, macOS and Linux when used with a compatible version of Python. It should also work on any other operating system that has a compatible version of Python installed. To check whether you have Python installed and to find its version, just type "python" at the CMD or shell prompt.

<translate> {{<tvar name=1>ll|Manual:Pywikibot/Compatibility</tvar>|Python <tvar name=2>3.7</tvar> or higher}} is currently required to run the bot.</translate>

Python can be downloaded here.

Download

$ python -m pip install pywikibot

For more information, see here.

Components

Two master folders are present in the library archive:

  • pywikibot contains all the master files, that will interact with MediaWiki websites. It's the master part of the library: they're used when you load PWB in your own Python scripts and when you launch plug-and-play tools.
  • scripts contains already written, known and proven scripts. They are ready to be used. See the list and docs for each one in Manual:Pywikibot/Scripts .

See also

License

Here you can view the LICENSE files for Pywikibot.

Other licenses