Dalba added a comment.
Another, and hopefully more straightforward, way of reproducing the issue:
from pywikibot import Site
site = Site('en', 'wikipedia')
for page in site.allpages(namespace=14, filterredir=True, content=True):
print(page)
(It'll hang in iterating over
Mpaa added a comment.
IMO, add a new function for this and mark filterredir=True as deprecated.TASK DETAILhttps://phabricator.wikimedia.org/T188843EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999, MpaaCc: Mpaa, zhuyifei1999, Chicocvenancio,
zhuyifei1999 added a comment.
Pywikibot does not yet have any (python) API that utilizes mediawiki's generator=allredirects API. Does it make more sense to add a new function for this (more elegant), make site.allpages() use it when filterredir=True (improve existing scripts), or do the former and
zhuyifei1999 added a comment.
Apparently, the 0-results-returned is because of the gapfilterredir=redirects. Compare with filter and without filter.TASK DETAILhttps://phabricator.wikimedia.org/T188843EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To:
zhuyifei1999 added a comment.
Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
URI: '/w/api.php'
Body: