Page MenuHomePhabricator

Category_redirect.py: PageGenerator: 'query' not found in api response.
Open, HighPublic

Description

PAWS:~$ pwb.py category_redirect.py -v
Python 3.6.3 (default, Oct  3 2017, 21:45:48)
[GCC 7.2.0]
LOADING SITE commons:commons VERSION: 1.31.0-wmf.23
Found 3 commons:commons processes running, including this one.
Checking hard-redirect category pages.
PageGenerator: 'query' not found in api response.
{'batchcomplete': '', 'continue': {'gapcontinue': '"Fate"_motif', 'continue': 'gapcontinue||userinfo'}}
PageGenerator: 'query' not found in api response.

and repeat... (python 3.6) and on my other bot... (python 2.7)

Running PAWS, cannot get pywikibot-core category_redirect.py to work on Commons.

Related Objects

Event Timeline

Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
URI: '/w/api.php'
Body: 'gapfrom=%21&prop=info%7Cimageinfo%7Ccategoryinfo%7Crevisions&rvprop=ids%7Ctimestamp%7Cflags%7Ccomment%7Cuser%7Ccontent&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=allpages&action=query&indexpageids=&continue=gapcontinue%7C%7Cuserinfo&gapnamespace=14&gapfilterredir=redirects&gaplimit=50&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json&gapcontinue=%22Naturerlebnisraum%22_in_Germany'
API response received from commons:commons:
{"batchcomplete":"","continue":{"gapcontinue":"\"Stahlgie\u00dferei_Gustav_Krautheim_Chemnitz\"","continue":"gapcontinue||userinfo"}}
PageGenerator: 'query' not found in api response.

API sandbox link of above.

Debug log from the script invoke to the first of such message:

1zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/T185561test$ PYWIKIBOT2_NO_USER_CONFIG=1 python3 ~/mw-dev/pywikibot-core/pwb.py category_redirect -simulate -verbose -debug -family:commons -lang:commons
2Skipping loading of user-config.py.
3family and mylang are not set.
4Defaulting to family='test' and mylang='test'.
5Python 3.6.4 (default, Mar 3 2018, 16:51:42)
6[GCC 5.4.0 20160609]
7handle_args() completed.
8Instantiated APISite object 'commons:commons'
9general siteinfo not loaded yet.
10general siteinfo not loaded yet.
11Load siteinfo properties 'namespaces', 'namespacealiases' along with 'general'
12Load siteinfo properties 'namespaces', 'namespacealiases' along with 'general'
13CachedRequest: cache hit (/home/zhuyifei1999/T185561test/apicache-py3/f2bd856f660527e525d4c5a8904717bb5c59d9de2f332d5f5982309888fe9cc7) for API request: APISite("commons", "commons")LoginStatus(NOT_LOGGED_IN)[('action', 'query'), ('continue', ''), ('format', 'json'), ('maxlag', '5'), ('meta', 'siteinfo|userinfo'), ('siprop', 'namespaces|namespacealiases|general'), ('uiprop', 'blockinfo|hasmsg')]
14LOADING SITE commons:commons VERSION: 1.31.0-wmf.23
15CachedRequest: cache hit (/home/zhuyifei1999/T185561test/apicache-py3/a05806b1ceb3352b384edbd5fbd30f4da83fa222e9a85f9e80765ecdd47ddfd2) for API request: APISite("commons", "commons")LoginStatus(NOT_LOGGED_IN)[('action', 'paraminfo'), ('format', 'json'), ('maxlag', '5'), ('modules', 'main|paraminfo|query')]
16CachedRequest: cache hit (/home/zhuyifei1999/T185561test/apicache-py3/9e0cdb2a4a2c89c0ad45508690b4e28c174bbb987b8a517bf57cd2015716fcb4) for API request: APISite("commons", "commons")LoginStatus(NOT_LOGGED_IN)[('action', 'paraminfo'), ('format', 'json'), ('maxlag', '5'), ('modules', 'query+backlinks')]
17PageGenerator: Set query_limit to 500.
18PageGenerator: Set query_limit to 500.
19PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
20PageGenerator: gbllimit: ['500']
21CachedRequest: cache hit (/home/zhuyifei1999/T185561test/apicache-py3/edff9c3775ad9c15fa59876b1a355ada32d4e37cb865e437fa961f3f25ce1ea7) for API request: APISite("commons", "commons")LoginStatus(NOT_LOGGED_IN)[('action', 'query'), ('continue', ''), ('format', 'json'), ('maxlag', '5'), ('meta', 'siteinfo|userinfo'), ('siprop', 'extensions'), ('uiprop', 'blockinfo|hasmsg')]
22CachedRequest: cache hit (/home/zhuyifei1999/T185561test/apicache-py3/e0ee9d76dcf65075ea127fee077961e6847745f7ec55f71f1a86cb7e62afcb56) for API request: APISite("commons", "commons")LoginStatus(NOT_LOGGED_IN)[('action', 'paraminfo'), ('format', 'json'), ('maxlag', '5'), ('modules', 'query+categoryinfo|query+imageinfo|query+info')]
23Checking multiplicity: pid = False
24Checking multiplicity: pid = False
25Found 1 commons:commons processes running, including this one.
26API request to commons:commons (uses get: False):
27Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
28URI: '/w/api.php'
29Body: 'gbltitle=Template%3ACategory+redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
30API response received from commons:commons:
31{"batchcomplete":"","query":{"pageids":["178466","255133","844608","1954102","1954106","3706597","4780636","5105875","29551006","46495082","46500252"],"pages":{"178466":{"pageid":178466,"ns":10,"title":"Template:Seecat","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":13304584,"length":72,"redirect":"","protection":[{"type":"edit","level":"sysop","expiry":"infinity"},{"type":"move","level":"sysop","expiry":"infinity"}],"restrictiontypes":["edit","move"]},"255133":{"pageid":255133,"ns":10,"title":"Template:Categoryredirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":52806733,"length":62,"redirect":"","protection":[{"type":"edit","level":"sysop","expiry":"infinity"},{"type":"move","level":"sysop","expiry":"infinity"}],"restrictiontypes":["edit","move"]},"844608":{"pageid":844608,"ns":10,"title":"Template:See cat","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":2101274,"length":40,"redirect":"","new":"","protection":[],"restrictiontypes":["edit","move"]},"1954102":{"pageid":1954102,"ns":10,"title":"Template:Catredirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":34454060,"length":62,"redirect":"","protection":[],"restrictiontypes":["edit","move"]},"1954106":{"pageid":1954106,"ns":10,"title":"Template:Cat redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":34454038,"length":62,"redirect":"","protection":[],"restrictiontypes":["edit","move"]},"3706597":{"pageid":3706597,"ns":10,"title":"Template:Catredir","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":34454059,"length":62,"redirect":"","protection":[],"restrictiontypes":["edit","move"]},"4780636":{"pageid":4780636,"ns":10,"title":"Template:Redirect category","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":14566223,"length":40,"redirect":"","new":"","protection":[],"restrictiontypes":["edit","move"]},"5105875":{"pageid":5105875,"ns":10,"title":"Template:Cat-red","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":34454023,"length":62,"redirect":"","protection":[],"restrictiontypes":["edit","move"]},"29551006":{"pageid":29551006,"ns":10,"title":"Template:Redirect cat","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":109385064,"length":39,"redirect":"","new":"","protection":[],"restrictiontypes":["edit","move"]},"46495082":{"pageid":46495082,"ns":10,"title":"Template:Category Redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-05-02T16:33:40Z","lastrevid":195054244,"length":62,"redirect":"","protection":[],"restrictiontypes":["edit","move"]},"46500252":{"pageid":46500252,"ns":10,"title":"Template:Cat-redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":185141409,"length":40,"redirect":"","new":"","protection":[],"restrictiontypes":["edit","move"]}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
32PageGenerator received ['178466', '255133', '844608', '1954102', '1954106', '3706597', '4780636', '5105875', '29551006', '46495082', '46500252']; limit=None
33API request to commons:commons (uses get: True):
34Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
35URI: '/w/api.php?action=query&prop=info&titles=Template%3ASeecat&redirects=&meta=userinfo&uiprop=blockinfo%7Chasmsg&rawcontinue=&maxlag=5&format=json'
36Body: None
37API response received from commons:commons:
38{"query":{"redirects":[{"from":"Template:Seecat","to":"Template:Category redirect"}],"pages":{"255131":{"pageid":255131,"ns":10,"title":"Template:Category redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2018-02-25T13:08:26Z","lastrevid":193125859,"length":2020}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
39PageGenerator: Set query_limit to 500.
40PageGenerator: Set query_limit to 500.
41PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
42PageGenerator: gbllimit: ['500']
43API request to commons:commons (uses get: False):
44Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
45URI: '/w/api.php'
46Body: 'gbltitle=Template%3ASeecat&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
47API response received from commons:commons:
48{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
49API request to commons:commons (uses get: True):
50Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
51URI: '/w/api.php?action=query&prop=info&titles=Template%3ACategoryredirect&redirects=&meta=userinfo&uiprop=blockinfo%7Chasmsg&rawcontinue=&maxlag=5&format=json'
52Body: None
53API response received from commons:commons:
54{"query":{"redirects":[{"from":"Template:Categoryredirect","to":"Template:Category redirect"}],"pages":{"255131":{"pageid":255131,"ns":10,"title":"Template:Category redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2018-02-25T13:08:26Z","lastrevid":193125859,"length":2020}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
55PageGenerator: Set query_limit to 500.
56PageGenerator: Set query_limit to 500.
57PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
58PageGenerator: gbllimit: ['500']
59API request to commons:commons (uses get: False):
60Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
61URI: '/w/api.php'
62Body: 'gbltitle=Template%3ACategoryredirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
63API response received from commons:commons:
64{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
65API request to commons:commons (uses get: True):
66Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
67URI: '/w/api.php?action=query&prop=info&titles=Template%3ASee+cat&redirects=&meta=userinfo&uiprop=blockinfo%7Chasmsg&rawcontinue=&maxlag=5&format=json'
68Body: None
69API response received from commons:commons:
70{"query":{"redirects":[{"from":"Template:See cat","to":"Template:Category redirect"}],"pages":{"255131":{"pageid":255131,"ns":10,"title":"Template:Category redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2018-02-25T13:08:26Z","lastrevid":193125859,"length":2020}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
71PageGenerator: Set query_limit to 500.
72PageGenerator: Set query_limit to 500.
73PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
74PageGenerator: gbllimit: ['500']
75API request to commons:commons (uses get: False):
76Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
77URI: '/w/api.php'
78Body: 'gbltitle=Template%3ASee+cat&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
79API response received from commons:commons:
80{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
81API request to commons:commons (uses get: True):
82Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
83URI: '/w/api.php?action=query&prop=info&titles=Template%3ACatredirect&redirects=&meta=userinfo&uiprop=blockinfo%7Chasmsg&rawcontinue=&maxlag=5&format=json'
84Body: None
85API response received from commons:commons:
86{"query":{"redirects":[{"from":"Template:Catredirect","to":"Template:Category redirect"}],"pages":{"255131":{"pageid":255131,"ns":10,"title":"Template:Category redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2018-02-25T13:08:26Z","lastrevid":193125859,"length":2020}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
87PageGenerator: Set query_limit to 500.
88PageGenerator: Set query_limit to 500.
89PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
90PageGenerator: gbllimit: ['500']
91API request to commons:commons (uses get: False):
92Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
93URI: '/w/api.php'
94Body: 'gbltitle=Template%3ACatredirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
95API response received from commons:commons:
96{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
97API request to commons:commons (uses get: True):
98Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
99URI: '/w/api.php?action=query&prop=info&titles=Template%3ACat+redirect&redirects=&meta=userinfo&uiprop=blockinfo%7Chasmsg&rawcontinue=&maxlag=5&format=json'
100Body: None
101API response received from commons:commons:
102{"query":{"redirects":[{"from":"Template:Cat redirect","to":"Template:Category redirect"}],"pages":{"255131":{"pageid":255131,"ns":10,"title":"Template:Category redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2018-02-25T13:08:26Z","lastrevid":193125859,"length":2020}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
103PageGenerator: Set query_limit to 500.
104PageGenerator: Set query_limit to 500.
105PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
106PageGenerator: gbllimit: ['500']
107API request to commons:commons (uses get: False):
108Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
109URI: '/w/api.php'
110Body: 'gbltitle=Template%3ACat+redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
111API response received from commons:commons:
112{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
113API request to commons:commons (uses get: True):
114Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
115URI: '/w/api.php?action=query&prop=info&titles=Template%3ACatredir&redirects=&meta=userinfo&uiprop=blockinfo%7Chasmsg&rawcontinue=&maxlag=5&format=json'
116Body: None
117API response received from commons:commons:
118{"query":{"redirects":[{"from":"Template:Catredir","to":"Template:Category redirect"}],"pages":{"255131":{"pageid":255131,"ns":10,"title":"Template:Category redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2018-02-25T13:08:26Z","lastrevid":193125859,"length":2020}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
119PageGenerator: Set query_limit to 500.
120PageGenerator: Set query_limit to 500.
121PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
122PageGenerator: gbllimit: ['500']
123API request to commons:commons (uses get: False):
124Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
125URI: '/w/api.php'
126Body: 'gbltitle=Template%3ACatredir&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
127API response received from commons:commons:
128{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
129API request to commons:commons (uses get: True):
130Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
131URI: '/w/api.php?action=query&prop=info&titles=Template%3ARedirect+category&redirects=&meta=userinfo&uiprop=blockinfo%7Chasmsg&rawcontinue=&maxlag=5&format=json'
132Body: None
133API response received from commons:commons:
134{"query":{"redirects":[{"from":"Template:Redirect category","to":"Template:Category redirect"}],"pages":{"255131":{"pageid":255131,"ns":10,"title":"Template:Category redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2018-02-25T13:08:26Z","lastrevid":193125859,"length":2020}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
135PageGenerator: Set query_limit to 500.
136PageGenerator: Set query_limit to 500.
137PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
138PageGenerator: gbllimit: ['500']
139API request to commons:commons (uses get: False):
140Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
141URI: '/w/api.php'
142Body: 'gbltitle=Template%3ARedirect+category&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
143API response received from commons:commons:
144{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
145API request to commons:commons (uses get: True):
146Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
147URI: '/w/api.php?action=query&prop=info&titles=Template%3ACat-red&redirects=&meta=userinfo&uiprop=blockinfo%7Chasmsg&rawcontinue=&maxlag=5&format=json'
148Body: None
149API response received from commons:commons:
150{"query":{"redirects":[{"from":"Template:Cat-red","to":"Template:Category redirect"}],"pages":{"255131":{"pageid":255131,"ns":10,"title":"Template:Category redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2018-02-25T13:08:26Z","lastrevid":193125859,"length":2020}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
151PageGenerator: Set query_limit to 500.
152PageGenerator: Set query_limit to 500.
153PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
154PageGenerator: gbllimit: ['500']
155API request to commons:commons (uses get: False):
156Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
157URI: '/w/api.php'
158Body: 'gbltitle=Template%3ACat-red&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
159API response received from commons:commons:
160{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
161API request to commons:commons (uses get: True):
162Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
163URI: '/w/api.php?action=query&prop=info&titles=Template%3ARedirect+cat&redirects=&meta=userinfo&uiprop=blockinfo%7Chasmsg&rawcontinue=&maxlag=5&format=json'
164Body: None
165API response received from commons:commons:
166{"query":{"redirects":[{"from":"Template:Redirect cat","to":"Template:Category redirect"}],"pages":{"255131":{"pageid":255131,"ns":10,"title":"Template:Category redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2018-02-25T13:08:26Z","lastrevid":193125859,"length":2020}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
167PageGenerator: Set query_limit to 500.
168PageGenerator: Set query_limit to 500.
169PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
170PageGenerator: gbllimit: ['500']
171API request to commons:commons (uses get: False):
172Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
173URI: '/w/api.php'
174Body: 'gbltitle=Template%3ARedirect+cat&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
175API response received from commons:commons:
176{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
177API request to commons:commons (uses get: True):
178Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
179URI: '/w/api.php?action=query&prop=info&titles=Template%3ACategory+Redirect&redirects=&meta=userinfo&uiprop=blockinfo%7Chasmsg&rawcontinue=&maxlag=5&format=json'
180Body: None
181API response received from commons:commons:
182{"query":{"redirects":[{"from":"Template:Category Redirect","to":"Template:Category redirect"}],"pages":{"255131":{"pageid":255131,"ns":10,"title":"Template:Category redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2018-02-25T13:08:26Z","lastrevid":193125859,"length":2020}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
183PageGenerator: Set query_limit to 500.
184PageGenerator: Set query_limit to 500.
185PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
186PageGenerator: gbllimit: ['500']
187API request to commons:commons (uses get: False):
188Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
189URI: '/w/api.php'
190Body: 'gbltitle=Template%3ACategory+Redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
191API response received from commons:commons:
192{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
193API request to commons:commons (uses get: True):
194Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
195URI: '/w/api.php?action=query&prop=info&titles=Template%3ACat-redirect&redirects=&meta=userinfo&uiprop=blockinfo%7Chasmsg&rawcontinue=&maxlag=5&format=json'
196Body: None
197API response received from commons:commons:
198{"query":{"redirects":[{"from":"Template:Cat-redirect","to":"Template:Category redirect"}],"pages":{"255131":{"pageid":255131,"ns":10,"title":"Template:Category redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2018-02-25T13:08:26Z","lastrevid":193125859,"length":2020}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
199PageGenerator: Set query_limit to 500.
200PageGenerator: Set query_limit to 500.
201PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
202PageGenerator: gbllimit: ['500']
203API request to commons:commons (uses get: False):
204Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
205URI: '/w/api.php'
206Body: 'gbltitle=Template%3ACat-redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
207API response received from commons:commons:
208{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
209PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
210PageGenerator: gbllimit: ['500']
211API request to commons:commons (uses get: False):
212Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
213URI: '/w/api.php'
214Body: 'gbltitle=Template%3ACategory+redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
215API response received from commons:commons:
216{"batchcomplete":"","query":{"pageids":["178466","255133","844608","1954102","1954106","3706597","4780636","5105875","29551006","46495082","46500252"],"pages":{"178466":{"pageid":178466,"ns":10,"title":"Template:Seecat","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":13304584,"length":72,"redirect":"","protection":[{"type":"edit","level":"sysop","expiry":"infinity"},{"type":"move","level":"sysop","expiry":"infinity"}],"restrictiontypes":["edit","move"]},"255133":{"pageid":255133,"ns":10,"title":"Template:Categoryredirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":52806733,"length":62,"redirect":"","protection":[{"type":"edit","level":"sysop","expiry":"infinity"},{"type":"move","level":"sysop","expiry":"infinity"}],"restrictiontypes":["edit","move"]},"844608":{"pageid":844608,"ns":10,"title":"Template:See cat","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":2101274,"length":40,"redirect":"","new":"","protection":[],"restrictiontypes":["edit","move"]},"1954102":{"pageid":1954102,"ns":10,"title":"Template:Catredirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":34454060,"length":62,"redirect":"","protection":[],"restrictiontypes":["edit","move"]},"1954106":{"pageid":1954106,"ns":10,"title":"Template:Cat redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":34454038,"length":62,"redirect":"","protection":[],"restrictiontypes":["edit","move"]},"3706597":{"pageid":3706597,"ns":10,"title":"Template:Catredir","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":34454059,"length":62,"redirect":"","protection":[],"restrictiontypes":["edit","move"]},"4780636":{"pageid":4780636,"ns":10,"title":"Template:Redirect category","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":14566223,"length":40,"redirect":"","new":"","protection":[],"restrictiontypes":["edit","move"]},"5105875":{"pageid":5105875,"ns":10,"title":"Template:Cat-red","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":34454023,"length":62,"redirect":"","protection":[],"restrictiontypes":["edit","move"]},"29551006":{"pageid":29551006,"ns":10,"title":"Template:Redirect cat","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":109385064,"length":39,"redirect":"","new":"","protection":[],"restrictiontypes":["edit","move"]},"46495082":{"pageid":46495082,"ns":10,"title":"Template:Category Redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-05-02T16:33:40Z","lastrevid":195054244,"length":62,"redirect":"","protection":[],"restrictiontypes":["edit","move"]},"46500252":{"pageid":46500252,"ns":10,"title":"Template:Cat-redirect","contentmodel":"wikitext","pagelanguage":"en","pagelanguagehtmlcode":"en","pagelanguagedir":"ltr","touched":"2016-04-13T17:32:39Z","lastrevid":185141409,"length":40,"redirect":"","new":"","protection":[],"restrictiontypes":["edit","move"]}},"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
217PageGenerator received ['178466', '255133', '844608', '1954102', '1954106', '3706597', '4780636', '5105875', '29551006', '46495082', '46500252']; limit=None
218PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
219PageGenerator: gbllimit: ['500']
220API request to commons:commons (uses get: False):
221Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
222URI: '/w/api.php'
223Body: 'gbltitle=Template%3ASeecat&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
224API response received from commons:commons:
225{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
226PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
227PageGenerator: gbllimit: ['500']
228API request to commons:commons (uses get: False):
229Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
230URI: '/w/api.php'
231Body: 'gbltitle=Template%3ACategoryredirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
232API response received from commons:commons:
233{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
234PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
235PageGenerator: gbllimit: ['500']
236API request to commons:commons (uses get: False):
237Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
238URI: '/w/api.php'
239Body: 'gbltitle=Template%3ASee+cat&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
240API response received from commons:commons:
241{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
242PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
243PageGenerator: gbllimit: ['500']
244API request to commons:commons (uses get: False):
245Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
246URI: '/w/api.php'
247Body: 'gbltitle=Template%3ACatredirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
248API response received from commons:commons:
249{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
250PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
251PageGenerator: gbllimit: ['500']
252API request to commons:commons (uses get: False):
253Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
254URI: '/w/api.php'
255Body: 'gbltitle=Template%3ACat+redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
256API response received from commons:commons:
257{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
258PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
259PageGenerator: gbllimit: ['500']
260API request to commons:commons (uses get: False):
261Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
262URI: '/w/api.php'
263Body: 'gbltitle=Template%3ACatredir&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
264API response received from commons:commons:
265{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
266PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
267PageGenerator: gbllimit: ['500']
268API request to commons:commons (uses get: False):
269Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
270URI: '/w/api.php'
271Body: 'gbltitle=Template%3ARedirect+category&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
272API response received from commons:commons:
273{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
274PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
275PageGenerator: gbllimit: ['500']
276API request to commons:commons (uses get: False):
277Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
278URI: '/w/api.php'
279Body: 'gbltitle=Template%3ACat-red&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
280API response received from commons:commons:
281{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
282PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
283PageGenerator: gbllimit: ['500']
284API request to commons:commons (uses get: False):
285Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
286URI: '/w/api.php'
287Body: 'gbltitle=Template%3ARedirect+cat&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
288API response received from commons:commons:
289{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
290PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
291PageGenerator: gbllimit: ['500']
292API request to commons:commons (uses get: False):
293Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
294URI: '/w/api.php'
295Body: 'gbltitle=Template%3ACategory+Redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
296API response received from commons:commons:
297{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
298PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
299PageGenerator: gbllimit: ['500']
300API request to commons:commons (uses get: False):
301Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
302URI: '/w/api.php'
303Body: 'gbltitle=Template%3ACat-redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
304API response received from commons:commons:
305{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
306PageGenerator: Set query_limit to 500.
307PageGenerator: Set query_limit to 500.
308PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
309PageGenerator: gbllimit: ['500']
310API request to commons:commons (uses get: False):
311Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
312URI: '/w/api.php'
313Body: 'gbltitle=Template%3ASynonym+taxon+category+redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
314API response received from commons:commons:
315{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
316PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
317PageGenerator: gbllimit: ['500']
318API request to commons:commons (uses get: False):
319Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
320URI: '/w/api.php'
321Body: 'gbltitle=Template%3ASynonym+taxon+category+redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
322API response received from commons:commons:
323{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
324PageGenerator: Set query_limit to 500.
325PageGenerator: Set query_limit to 500.
326PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
327PageGenerator: gbllimit: ['500']
328API request to commons:commons (uses get: False):
329Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
330URI: '/w/api.php'
331Body: 'gbltitle=Template%3AInvalid+taxon+category+redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
332API response received from commons:commons:
333{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
334PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
335PageGenerator: gbllimit: ['500']
336API request to commons:commons (uses get: False):
337Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
338URI: '/w/api.php'
339Body: 'gbltitle=Template%3AInvalid+taxon+category+redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
340API response received from commons:commons:
341{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
342PageGenerator: Set query_limit to 500.
343PageGenerator: Set query_limit to 500.
344PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
345PageGenerator: gbllimit: ['500']
346API request to commons:commons (uses get: False):
347Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
348URI: '/w/api.php'
349Body: 'gbltitle=Template%3AMonotypic+taxon+category+redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
350API response received from commons:commons:
351{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
352PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
353PageGenerator: gbllimit: ['500']
354API request to commons:commons (uses get: False):
355Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
356URI: '/w/api.php'
357Body: 'gbltitle=Template%3AMonotypic+taxon+category+redirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
358API response received from commons:commons:
359{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
360PageGenerator: Set query_limit to 500.
361PageGenerator: Set query_limit to 500.
362PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
363PageGenerator: gbllimit: ['500']
364API request to commons:commons (uses get: False):
365Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
366URI: '/w/api.php'
367Body: 'gbltitle=Template%3AEndashcatredirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
368API response received from commons:commons:
369{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
370PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 500, count: 0
371PageGenerator: gbllimit: ['500']
372API request to commons:commons (uses get: False):
373Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
374URI: '/w/api.php'
375Body: 'gbltitle=Template%3AEndashcatredirect&gblfilterredir=redirects&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=backlinks&action=query&indexpageids=&continue=&gblnamespace=10&gbllimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
376API response received from commons:commons:
377{"batchcomplete":"","query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
378Checking hard-redirect category pages.
379CachedRequest: cache hit (/home/zhuyifei1999/T185561test/apicache-py3/bfde61e417269cd708dc11369724d77dc7e40e8fcfad413ca646ab2b3d6db238) for API request: APISite("commons", "commons")LoginStatus(NOT_LOGGED_IN)[('action', 'paraminfo'), ('format', 'json'), ('maxlag', '5'), ('modules', 'query+allpages')]
380PageGenerator: Set query_limit to 500.
381PageGenerator: query_limit: 500, api_limit: 500, limit: None, new_limit: 50, count: 0
382PageGenerator: gaplimit: ['50']
383CachedRequest: cache hit (/home/zhuyifei1999/T185561test/apicache-py3/ad45711720014664a8c68085f55d6c95d15c56d984af00543ab565b1a98472b8) for API request: APISite("commons", "commons")LoginStatus(NOT_LOGGED_IN)[('action', 'paraminfo'), ('format', 'json'), ('maxlag', '5'), ('modules', 'query+revisions')]
384API request to commons:commons (uses get: False):
385Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
386URI: '/w/api.php'
387Body: 'gapfrom=%21&prop=info%7Cimageinfo%7Ccategoryinfo%7Crevisions&rvprop=ids%7Ctimestamp%7Cflags%7Ccomment%7Cuser%7Ccontent&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=allpages&action=query&indexpageids=&continue=&gapnamespace=14&gapfilterredir=redirects&gaplimit=50&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
388API response received from commons:commons:
389{"batchcomplete":"","continue":{"gapcontinue":"\"Centaur\";_or_the_\"Turn_out\"","continue":"gapcontinue||userinfo"},"query":{"userinfo":{"id":0,"name":"IPREDACTED","anon":""}}}
390API request to commons:commons (uses get: False):
391Headers: {'Content-Type': 'application/x-www-form-urlencoded'}
392URI: '/w/api.php'
393Body: 'gapfrom=%21&prop=info%7Cimageinfo%7Ccategoryinfo%7Crevisions&rvprop=ids%7Ctimestamp%7Cflags%7Ccomment%7Cuser%7Ccontent&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&generator=allpages&action=query&indexpageids=&continue=gapcontinue%7C%7Cuserinfo&gapnamespace=14&gapfilterredir=redirects&gaplimit=50&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json&gapcontinue=%22Centaur%22%3B_or_the_%22Turn_out%22'
394API response received from commons:commons:
395{"batchcomplete":"","continue":{"gapcontinue":"\"Fate\"_motif","continue":"gapcontinue||userinfo"}}
396PageGenerator: 'query' not found in api response.

Apparently, the 0-results-returned is because of the gapfilterredir=redirects. Compare with filter and without filter.

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 mark filterredir=True as deprecated?

Xqt triaged this task as High priority.Mar 4 2018, 10:52 AM

IMO, add a new function for this and mark filterredir=True as deprecated.

I half-coded it and did a test run, but apparently, looking at the results of the apisandbox link, the garnamespace filter filters by redirect target namespace, not source. That's not too useful here :(

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 site.allpages(namespace=14, filterredir=True, content=True). The print statement is not reached, at least not as long as I let the script run, which was nearly 2 or 3 minutes.)