[Pywikipedia-bugs] [Maniphest] [Commented On] T188843: Category_redirect.py: PageGenerator: 'query' not found in api response.

2018-04-27 Thread Dalba
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

[Pywikipedia-bugs] [Maniphest] [Commented On] T188843: Category_redirect.py: PageGenerator: 'query' not found in api response.

2018-03-17 Thread Mpaa
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,

[Pywikipedia-bugs] [Maniphest] [Commented On] T188843: Category_redirect.py: PageGenerator: 'query' not found in api response.

2018-03-03 Thread zhuyifei1999
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

[Pywikipedia-bugs] [Maniphest] [Commented On] T188843: Category_redirect.py: PageGenerator: 'query' not found in api response.

2018-03-03 Thread zhuyifei1999
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:

[Pywikipedia-bugs] [Maniphest] [Commented On] T188843: Category_redirect.py: PageGenerator: 'query' not found in api response.

2018-03-03 Thread zhuyifei1999
zhuyifei1999 added a comment. Headers: {'Content-Type': 'application/x-www-form-urlencoded'} URI: '/w/api.php' Body: