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(a)lists.wikimedia.org
Reporter: codecat42(a)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
--
You are receiving this mail because:
You are the assignee for the bug.