Page MenuHomePhabricator

-redirectonly pagegenerators option wasn't ported from compat
Closed, ResolvedPublicFeature

Description

The compat implemetation can be found here. It should be implemented in pagegenerators.py in a similar way like -start option.

Event Timeline

Xqt triaged this task as Low priority.Aug 29 2020, 11:33 AM
Xqt changed the subtype of this task from "Task" to "Feature Request".
Xqt added a project: good first task.
Xqt removed Strainu as the assignee of this task.Aug 29 2020, 12:03 PM
Xqt added a subscriber: Strainu.

I would like to try solving this issue. Would you please elaborate?

@Xqt, I think this should be implemented as a filter.

@Xqt, I think this should be implemented as a filter.

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.

I'll look forward to some other task then!

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

https://gerrit.wikimedia.org/r/970820

Change 970820 merged by jenkins-bot:

[pywikibot/core@master] [FEAT] Add a filter to check if a page is redirect

https://gerrit.wikimedia.org/r/970820