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: [email protected]
          Reporter: [email protected]
       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 on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to