Frequently asked questions#
- How to speed up Pywikibot?
If you need the content, use
PreloadingGenerator
with page generators,PreloadingEntityGenerator
for wikibase entities andDequePreloadingGenerator
for aDequeGenerator
.If you use
GeneratorFactory
with your bot and use itsgetCombinedGenerator
method you can setpreload=True
to preload page content. This is an alternate to thePreloadingGenerator
function mentioned above.Use
MySQLPageGenerator
if 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
-user
Global options to change it. Maybe you have to login first.- ERROR: Unable to execute script because no *generator* was defined.
Using
-help
option 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.pagegenerators
module. 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.