Author: codecat42
Description:
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 wcgenVersion: core-(2.0)
Severity: trivial