<br><br><div class="gmail_quote">2010/8/10 Bináris <span dir="ltr"><<a href="mailto:wikiposta@gmail.com">wikiposta@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>we got a request to rename a lot of articles in huwiki. See <a href="http://hu.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Botgazd%C3%A1k_%C3%BCzen%C5%91fala&curid=69093&diff=8179481&oldid=8178513#G.C5.91zmozdonyok_sz.C3.B3cikk-c.C3.ADmei" target="_blank">http://hu.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Botgazd%C3%A1k_%C3%BCzen%C5%91fala&curid=69093&diff=8179481&oldid=8178513#G.C5.91zmozdonyok_sz.C3.B3cikk-c.C3.ADmei</a><br>
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. <br><br>How would you solve this problem? <br>
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.<br clear="all">
<br>-- <br><font color="#888888">Bináris<br>
</font><br>_______________________________________________<br>
Pywikipedia-l mailing list<br>
<a href="mailto:Pywikipedia-l@lists.wikimedia.org">Pywikipedia-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l</a><br>
<br></blockquote></div><br>Use movepages.py, with -pairs parameter. It will read a text file, where old names and new names are paired linke this: <br>[[old name1]] [[new name1]]<br>[[old name2]] [[new name2]]<br>....<br>
<br><a href="http://meta.wikimedia.org/wiki/Pywikipediabot/movepages.py">http://meta.wikimedia.org/wiki/Pywikipediabot/movepages.py</a><br><br>Alex<br><br clear="all"><br>-- <br>Alex<br>