Last modified: 2014-10-04 19:59:13 UTC
import pywikibot site = pywikibot.getSite() cat = pywikibot.Category(site, 'Speeches') for i in cat.subcategories(total=5): print i returns empty list even if subcats are present. api,py gives up at first try if this fails: if self.resultkey in self.data["query"]: it should try again a query has still data to provide: {u'query-continue': {u'categorymembers': {u'gcmcontinue': u'page|414444524553532044454c49564552454420415420544845204d41534f4e20434f4c4c4547452c20414e0a45535341595320414e44204144445245535345532f414e20414444524553532044454c49564552454420415420544845204d41534f4e20434f4c4c454745|411259'}}, u'query': {u'userinfo': {u'id': 257091, u'name': u'Mpaa'}}}
Change 164258 had a related patch set uploaded by Mpaa: Bug 71538 - Pages might not be returned at first req.submit() https://gerrit.wikimedia.org/r/164258
the example is on en:wikisource
Change 164258 merged by jenkins-bot: Bug 71538 - Pages might not be returned at first req.submit() https://gerrit.wikimedia.org/r/164258