Last modified: 2014-01-04 07:08:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56563, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54563 - Make RegexFilterPageGenerator work on page bodies.
Make RegexFilterPageGenerator work on page bodies.
Status: NEW
Product: Pywikibot
Classification: Unclassified
pagegenerators (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-24 22:32 UTC by Kunal Mehta (Legoktm)
Modified: 2014-01-04 07:08 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-09-24 22:32:44 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.
Comment 1 Kunal Mehta (Legoktm) 2013-09-24 22:32:46 UTC
Version 2
Comment 2 Kunal Mehta (Legoktm) 2013-09-24 22:32:48 UTC
Commandline parameter to filter articles based on their  bodies.
Comment 3 Kunal Mehta (Legoktm) 2013-09-24 22:32:50 UTC
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\!
Comment 4 Kunal Mehta (Legoktm) 2013-09-24 22:32:52 UTC
Hi again\!

I added a new parameter -articlefilterregex which works on all subsequently given generators.


Regards, 

Niki
Comment 5 Kunal Mehta (Legoktm) 2013-09-24 22:32:53 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links