The compat implemetation can be found here. It should be implemented in pagegenerators.py in a similar way like -start option.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
[FEAT] Add a filter to check if a page is redirect | pywikibot/core | master | +22 -1 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | None | T72936 Important tasks to be solved (tracking) | |||
Open | Feature | None | T57880 Functionality existing in compat but missing from core (tracking) | ||
Invalid | None | T223529 Pywikibot good first bugs (tracking) | |||
Open | Feature | None | T350532 Enable API filter with pagegenerators -redirect option | ||
Resolved | Feature | Ciencia_Al_Poder | T261549 -redirectonly pagegenerators option wasn't ported from compat |
Event Timeline
Comment Actions
Hm, that's more difficult. It would be possible if the generator includes redirects but you can't be sure. pagegenerators -start does not include them for example. And in addition filtering should be done prior on server side instead of retrieving a lot of pages and discard them later. The old Combat implementation is just like -start but for redirects only. Implementing as a partial filter is not so easy; maybe this is not for good first then.
Comment Actions
Change 970820 had a related patch set uploaded (by Martineznovo; author: Martineznovo):
[pywikibot/core@master] [FEAT] Add a filter to check if a page is redirect
Comment Actions
Change 970820 merged by jenkins-bot:
[pywikibot/core@master] [FEAT] Add a filter to check if a page is redirect