Manual:Pywikibot/pwb.py

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Pywikibot/pwb.py and the translation is 33% complete.
Other languages:
English • ‎українська • ‎日本語

pwb.py is a wrapper script to use Pywikibot in a 'directory' mode.

使用法

Run scripts using:

$ python pwb.py <pwb options> <name_of_script> <options>

and it will use the package directory to store all user files, fix up search paths so the package does not need to be installed, etc.

Currently <pwb options> are global options. This can be used for tests to set the default site like (see T216825):

$ python pwb.py -lang:de bot_tests -v