Manual:Pywikibot/transferbot.py

This script transfers pages from a source wiki to a target wiki.

It also copies edit history to a subpage.

Internal links are *not* repaired!

Example commands
Transfer all pages in category "Query service" from the English Wikipedia to the Arabic Wiktionary, adding "Wiktionary:Import enwp/" as prefix:  python pwb.py transferbot -family:wikipedia -lang:en -cat:"Query service" \ -tofamily:wiktionary -tolang:ar -prefix:"Wiktionary:Import enwp/"

Copy the template "Query service" from the Toolserver wiki to wikitech:  python pwb.py transferbot -family:wikipedia -lang:en \ -tofamily:wiktionary -tolang:ar -page:"Template:Query service"

Parameters
-tolang:         The target site code.

-tofamily:         The target site family.

-prefix:         Page prefix on the new site.

-overwrite:      Existing pages are skipped by default. Use his option to                 overwrite pages.

Pages to work on can be specified using any of: