Frequently asked questions#
- How to speed up Pywikibot?
The first time you are using Pywikibot for multiple Wikimedia sites you can run
preload_sitesscript to preload site info quickly.
If you use
GeneratorFactorywith your bot and use its
getCombinedGeneratormethod you can set
preload=Trueto preload page content. This is an alternate to the
PreloadingGeneratorfunction mentioned above.
MySQLPageGeneratorif direct DB access is available and appropriate. See also: MySQL
- The bot cannot delete pages
Your account needs delete rights on your wiki. If you have setup another account in your user_config use
-userGlobal options to change it. Maybe you have to login first.
- ERROR: Unable to execute script because no *generator* was defined.
-helpoption is a good way to find all generators which can be used with that script. You can also find all generator options and filter options at
pywikibot.pagegeneratorsmodule. See also Page Generators for additional information.
- pywikibot.i18n.TranslationError: No English translation has been defined
It can happen due to lack of i18n submodule or files. Update i18n submodule or download these files first. See also: i18n manual.