2010/8/10 Bináris wikiposta@gmail.com
Hello,
we got a request to rename a lot of articles in huwiki. See http://hu.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Botgazd%C3%A1k_%C3%... All the "0" chars in titles mean "any digit". As far as I see, move.py does not handle regexps in the way replace.py does, although I would just need this feature.
How would you solve this problem? Earlier in another problem I generated "move X Y" lines with Excel, and put them in a batch file, calling move.py as many times as the number of articles to rename, what is not too nice, but now I don't know all the original titles, only patterns.
-- Bináris
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Use movepages.py, with -pairs parameter. It will read a text file, where old names and new names are paired linke this: [[old name1]] [[new name1]] [[old name2]] [[new name2]] ....
http://meta.wikimedia.org/wiki/Pywikipediabot/movepages.py
Alex