Manual:Pywikibot/movepages.py

The movepages.py script is used to move pages.

Example

 * 1) Copy the list of the current pages, for example with Special:PrefixIndex.
 * 2) Convert it in ASCII, for instance with this JavaScript tool.
 * 3) Paste it in the first column of a spreadsheet (eg: OpenOffice Calc).
 * 4) Create the second column with the same number of lines, with some characters which won't be present neither in the old pages names nor in the new (eg: "string to replace after by \n").
 * 5) Paste your new pages names (converted in ASCII) into the third column.
 * 6) Copy the three columns into a file (eg: called "articles_pairs.txt").
 * 7) Search and replace with your text editor (eg: Notepad++), the second column content by the carriage return (\n) (Tip: In notepad++ which trying to replace with \n enable the option regex in the replace dialogue box).
 * 8) Launching:   will produce [//fr.wikibooks.org/w/index.php?title=Photographie/Soci%C3%A9t%C3%A9s_et_Organisations/%C3%89diteurs_de_cartes_postales/A.D.&diff=prev&oldid=430154 the wanted result].