https://bugzilla.wikimedia.org/show_bug.cgi?id=72243
Bug ID: 72243 Summary: Implement site.wantedcategories Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: trivial Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: codecat42@gmail.com Web browser: --- Mobile Platform: ---
The Site object currently has a wantedpages method, but it is lacking an equivalent wantedcategories method. The following code, inserted at line 4686 in site.py (above the existing wantedpages), works for me:
def wantedcategories(self, step=None, total=None): """Yield Pages from Special:Wantedcategories.
@param step: request batch size @param total: number of pages to return """ wcgen = self._generator(api.CategoryPageGenerator, type_arg="querypage", gqppage="Wantedcategories", step=step, total=total)
return wcgen
https://bugzilla.wikimedia.org/show_bug.cgi?id=72243
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 167519 had a related patch set uploaded by XZise: [FEAT] Site: Add wantedcategories
https://gerrit.wikimedia.org/r/167519
https://bugzilla.wikimedia.org/show_bug.cgi?id=72243
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=72243
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 167519 merged by jenkins-bot: [FEAT] Site: Add wantedcategories
https://gerrit.wikimedia.org/r/167519
https://bugzilla.wikimedia.org/show_bug.cgi?id=72243
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED CC| |mpaa.wiki@gmail.com Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org