Hello all
I'd like to suggest the code change given by the attached patch.
The idea is to change RegexFilterPageGenerator a little bit. First change the 'regex' param to a list of regex(es) instead of 1 single. The whole list of regex will be checked for a positive match. The second change involves a new parameter 'invert' which, if set to True changes the generator from returning pages on ANY POSITIVE match to return page on NO POSITIVE match AT ALL. This way a positive (additive) and negative (subtractive) filter behaviour can be achieved.
This would also be very helpful for my bot... ;)
Thanks a lot and greetings DrTrigon
Hello again!
Sorry for asking this again, but what about this feature request? It would be very helpful for my bot, since with this I could force the PreloadingGenerator to drop irrelevant pages BEFORE preloading! Speed-up and less traffic/load for mediawiki servers (and my bot on the tool- server ;))
Greetings and Thanks a lot! DrTrigon
Am 19.09.2010 00:06, schrieb Dr. Trigon:
Hello all
I'd like to suggest the code change given by the attached patch.
The idea is to change RegexFilterPageGenerator a little bit. First change the 'regex' param to a list of regex(es) instead of 1 single. The whole list of regex will be checked for a positive match. The second change involves a new parameter 'invert' which, if set to True changes the generator from returning pages on ANY POSITIVE match to return page on NO POSITIVE match AT ALL. This way a positive (additive) and negative (subtractive) filter behaviour can be achieved.
This would also be very helpful for my bot... ;)
Thanks a lot and greetings DrTrigon
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Done in r8609. Thanks
----- Original Nachricht ---- Von: "Dr. Trigon" dr.trigon@surfeu.ch An: Pywikipedia discussion list pywikipedia-l@lists.wikimedia.org Datum: 19.09.2010 00:06 Betreff: [Pywikipedia-l] Feature request for pagegenerators.RegexFilterPageGenerator
Hello all
I'd like to suggest the code change given by the attached patch.
The idea is to change RegexFilterPageGenerator a little bit. First change the 'regex' param to a list of regex(es) instead of 1 single. The whole list of regex will be checked for a positive match. The second change involves a new parameter 'invert' which, if set to True changes the generator from returning pages on ANY POSITIVE match to return page on NO POSITIVE match AT ALL. This way a positive (additive) and negative (subtractive) filter behaviour can be achieved.
This would also be very helpful for my bot... ;)
Thanks a lot and greetings DrTrigon
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Have to rise this again. Was testing the new revision and have some issues. I need the possibility to compare against page.title() instead of page.titleWithoutNamespace(). Additionally it would be great if the regex could also be passed in a compiled representation (but this is optional).
Please look at the attached patch...
Thanks a lot and greetings DrTrigon
Am 05.10.2010 18:24, schrieb info@gno.de:
Done in r8609. Thanks
----- Original Nachricht ---- Von: "Dr. Trigon"dr.trigon@surfeu.ch An: Pywikipedia discussion listpywikipedia-l@lists.wikimedia.org Datum: 19.09.2010 00:06 Betreff: [Pywikipedia-l] Feature request for pagegenerators.RegexFilterPageGenerator
Hello all
I'd like to suggest the code change given by the attached patch.
The idea is to change RegexFilterPageGenerator a little bit. First change the 'regex' param to a list of regex(es) instead of 1 single. The whole list of regex will be checked for a positive match. The second change involves a new parameter 'invert' which, if set to True changes the generator from returning pages on ANY POSITIVE match to return page on NO POSITIVE match AT ALL. This way a positive (additive) and negative (subtractive) filter behaviour can be achieved.
This would also be very helpful for my bot... ;)
Thanks a lot and greetings DrTrigon
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Hi folks,
I've introduced a interwiki directive in pyrev:8596 / 8597 to place interwikis on top of a page. This possibility it also given in general by family file. But I found several project pages need this option as an exception. Interwiki Bots will recognize it if there is a <!-- interwiki at top --> on that page.
Greetings xqt
pywikipedia-l@lists.wikimedia.org