[Pywikipedia-l] Feature request for pagegenerators.RegexFilterPageGenerator

info at gno.de info at gno.de
Tue Oct 5 16:24:00 UTC 2010


Done in r8609. Thanks 


----- Original Nachricht ----
Von:     "Dr. Trigon" <dr.trigon at surfeu.ch>
An:      Pywikipedia discussion list <pywikipedia-l at 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 at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
> 



More information about the Pywikipedia-l mailing list