Frequently asked questions#
- How to speed up Pywikibot?
If you need the content, use
PreloadingGeneratorwith page generators,PreloadingEntityGeneratorfor wikibase entities andDequePreloadingGeneratorfor aDequeGenerator.If you use
GeneratorFactorywith your bot and use itsgetCombinedGeneratormethod you can setpreload=Trueto preload page content. This is an alternate to thePreloadingGeneratorfunction mentioned above.Use
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.
Using
-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 atpywikibot.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.