https://bugzilla.wikimedia.org/show_bug.cgi?id=54537
Web browser: --- Bug ID: 54537 Summary: Pagegenerator: follow redirects, intersection, exclusion Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/patches/625/ Reported by: andreasjs Created on: 2013-08-24 21:57:56.794000 Subject: Pagegenerator: follow redirects, intersection, exclusion Original description: I added three new arguments:
-followredirects Used with other arguments that specify a set of pages. If a specified page is a redirect page, work on its target page.
-intersecting Argument to be used between two other arguments. Work only on pages normally specified by both the previous and the next argument.
-excluding Argument to be used between two other arguments. Work only on pages normally specified by the previous argument but not by the next argument.
For example, one could want to find the pages edited by a specific user that contain a certain keyword in a title.
A few other suggestions: Exclude sections, even on files. Compare pages via the Page.__cmp__ property to exclude duplicate pages instead of u"%s:%s:%s" % (page._site.family.name, page._site.lang, page._title). (more transparent and easier to maintain).
https://bugzilla.wikimedia.org/show_bug.cgi?id=54537
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/patches/625
https://bugzilla.wikimedia.org/show_bug.cgi?id=54537
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Created attachment 13365 --> https://bugzilla.wikimedia.org/attachment.cgi?id=13365&action=edit Copy of attachment from http://sourceforge.net/p/pywikipediabot/patches/625/attachment/pagegenerator...
https://bugzilla.wikimedia.org/show_bug.cgi?id=54537
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |info@gno.de Severity|normal |enhancement
https://bugzilla.wikimedia.org/show_bug.cgi?id=54537
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|General |pagegenerators
https://bugzilla.wikimedia.org/show_bug.cgi?id=54537
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #2 from Merlijn van Deen valhallasw@arctus.nl --- Patch does not apply cleanly to either core or compat
https://bugzilla.wikimedia.org/show_bug.cgi?id=54537
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g Summary|Pagegenerator: follow |pagegenerators: follow |redirects, intersection, |redirects, intersection, |exclusion |exclusion
https://bugzilla.wikimedia.org/show_bug.cgi?id=54537
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com Assignee|Pywikipedia-bugs@lists.wiki |jayvdb@gmail.com |media.org |
--- Comment #3 from John Mark Vandenberg jayvdb@gmail.com --- excluding would be very helpful to workaround bugs, where one page is causing a problem, such as bug 69133.
pywikipedia-bugs@lists.wikimedia.org