Fixing previous commit: Setting rvgen.limit = -1 in preloadpages (Error was pywikibot.data.api.APIError: rvmultpages: titles, pageids or a generator was used to supply multiple pages, but the limit, startid, endid, dirNewer, user, excludeuser, start and end parameters may only be used on a single page. )
Fixing previous commit:
Setting rvgen.limit = -1 in preloadpages
(Error was pywikibot.data.api.APIError: rvmultpages: titles, pageids or a generator was used to supply multiple pages, but the limit, startid, endid, dirNewer, user, excludeuser, start and end parameters may only be used on a single page. )

pywikibot/core-migration-example