jenkins-bot has submitted this change and it was merged.
Change subject: [FEAT] Site: Add wantedcategories ......................................................................
[FEAT] Site: Add wantedcategories
As suggested a Special:Wantedcategories implementation.
Bug: 72243 Change-Id: I3429f337e440ab22c965da6632ae0c61c2484661 --- M pywikibot/site.py 1 file changed, 12 insertions(+), 0 deletions(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index 660f9a1..a17b205 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -4692,6 +4692,18 @@ step=step, total=total) return wpgen
+ 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 + @deprecated_args(number=None, repeat=None) def uncategorizedcategories(self, number=None, repeat=True, step=None, total=None):