Page MenuHomePhabricator

Negation of page generators
Open, LowPublic

Description

It would be nice if it was possible to negate page generators, in order to have the scripts operate on all pages that do not match a given page generator.

I think the syntax -no-pagegenerator would be good for that. There are some page generators for which negation does not seem to make sense (like -randomredirect), but many for which it could be useful (-no-usercontribs, -no-lonelypages, -no-transclude, -no-titleregex, -no-grep, -no-page and others).

Event Timeline

Mark.Otaris raised the priority of this task from to Needs Triage.
Mark.Otaris updated the task description. (Show Details)
Mark.Otaris added a project: Pywikibot.
Mark.Otaris added a subscriber: Mark.Otaris.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptJun 25 2015, 2:19 AM
Mark.Otaris updated the task description. (Show Details)Jun 25 2015, 2:21 AM
Mark.Otaris set Security to None.
jayvdb added a subscriber: jayvdb.Jun 25 2015, 4:56 AM

One use case discussed on IRC was excluding certain namespaces. (all pages except namespace 0) -- any implementation of that will need to ensure it does not exceed the limit of namespaces and reintroduce T67981: WARNING: API warning (categorymembers): Too many values supplied for parameter 'gcmnamespace': the limit is 50.

Mpaa added a subscriber: Mpaa.Oct 29 2015, 10:20 PM
Xqt added a subscriber: Xqt.
Restricted Application added a subscriber: StudiesWorld. · View Herald TranscriptJan 25 2016, 2:06 PM
Xqt triaged this task as Low priority.Jun 28 2017, 8:35 AM

Another idea would be to allow a filter mechanism like the implementation inside EventStreams.