Re: [Pywikipedia-l] How to mass rename articles?

2010-08-22 Thread Bináris
I tried it, and there is a funny thing. I was wondering, how this factory yields articles with more than 3 digits in title. I modified your expression first: gen = RegexFilterPageGenerator(PrefixingPageGenerator(kkStB), rkkStB [0-9]) and after it: gen =

[Pywikipedia-l] How to mass rename articles?

2010-08-10 Thread Bináris
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%BCzen%C5%91falacurid=69093diff=8179481oldid=8178513#G.C5.91zmozdonyok_sz.C3.B3cikk-c.C3.ADmei All the 0 chars in titles mean any digit. As far as I see,

Re: [Pywikipedia-l] How to mass rename articles?

2010-08-10 Thread Bináris
Thank you, I know this syntax, but the problem is that I don't know the old names, beacuse I have only a pattern of the old names that could be handled by regexps. I don't know even of the approximate number of the old names. The real solution would be make movepages.py recognize the regexps.

Re: [Pywikipedia-l] How to mass rename articles?

2010-08-10 Thread Merlijn van Deen
On 10 August 2010 09:24, Bináris wikipo...@gmail.com wrote: 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? Use the framework instead of relying

Re: [Pywikipedia-l] How to mass rename articles?

2010-08-10 Thread Bináris
2010/8/10 Merlijn van Deen valhall...@arctus.nl Use the framework instead of relying ready-to-use bots. Use the PrefixingPageGenerator combined with the RegexFilterPageGenerator (from pagegenerators.py) to yield the correct pages to move. Something like: Thank you, this is really useful, I