Last modified: 2014-01-04 07:08:13 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/patches/552/ Reported by: loxley Created on: 2012-05-12 16:09:39 Subject: Make RegexFilterPageGenerator work on page bodies. Original description: Make RegexFilterPageGenerator work on page bodies. As suggested by valhallasw. The re.S flag is backwards compatible and allows matching newlines.
Version 2
Commandline parameter to filter articles based on their bodies.
Looks good to me. If you have time, could you a\) add a command line parameter for this option in the GeneratorFactory, and b\) change the re.I and re.S to the full names \(I think it's IGNORECASE and MULTILINE?\) Thanks\!
Hi again\! I added a new parameter -articlefilterregex which works on all subsequently given generators. Regards, Niki
Hi Valhallasw\! Thanks for the feedback. I changed the flags to their verbose representation and will add the commandline switch within the next to days. Regards Niki