Mpaa added a comment.

I am not sure I get your point. Let me see if I get it right.

This query returns 1400+ Categories:
https://fr.wiktionary.org/wiki/Sp%C3%A9cial:UnconnectedPages?limit=5000&namespace=14

When you run the script below, you get 20+ pages
C:\pwb>pwb.py newitem -lang:fr -family:wiktionary -unconnectedpages -namespace:14 -touch -pageage:7

IMO, the explanation is that pywikibot, in this case, filters namespace=14 after retrieving all sort of pages.
And the API returns at most 10000 pages, 22 of them are categories.

This is the request done by pywikibot. You can try to increase the gqpoffset and see the returned data:
pywikibot.data.api.Request<wiktionary:fr->'/w/api.php?gqppage=UnconnectedPages&prop=info|imageinfo|categoryinfo&inprop=protection&iiprop=timestamp|user|comment|url|size|sha1|metadata&generator=querypage&action="">

Or try to replicate it in the API Sandbox:
https://fr.wiktionary.org/wiki/Sp%C3%A9cial:ApiSandbox#action="">


TASK DETAIL
https://phabricator.wikimedia.org/T173293

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Mpaa
Cc: Mpaa, Aklapper, JAnD, pywikibot-bugs-list
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to