original_docstring: Use API to list category pages. Called by get_new_categoryPages()
docstring: Use API to list category pages.
docstring_tokens: Use API to list category pages .
code: def _api_get_new_category_pages(
      category: pywikibot.Category,
      start_time: pywikibot.Timestamp,
      end_time: pywikibot.Timestamp,
      namespaces: List[int],
  ) -> Iterator[Tuple[pywikibot.page.BasePage, pywikibot.Timestamp]]:
      """Use API to list category pages. Called by get_new_categoryPages()"""
      for row in pywikibot.data.api.ListGenerator(
          "categorymembers",
          site=site,
          cmtitle=category.title(underscore=True, with_ns=True),
          cmprop="title|type|timestamp",
          cmnamespace="|".join(str(n) for n in namespaces),
          cmtype="page",
          cmsort="timestamp",
          cmstart=start_time.isoformat(),
          cmend=end_time.isoformat(),
      ):
          if row.get("type", "page") != "page":
              continue
  
          yield (
              pywikibot.Page(site, title=row.get("title", ""), ns=row.get("ns", "")),
              pywikibot.Timestamp.fromISOformat(row.get("timestamp")),
          )
code_tokens: def _api_get_new_category_pages ( category : pywikibot . Category , start_time : pywikibot . Timestamp , end_time : pywikibot . Timestamp , namespaces : List [ int ] , ) -> Iterator [ Tuple [ pywikibot . page . BasePage , pywikibot . Timestamp ] ] : for row in pywikibot . data . api . ListGenerator ( "categorymembers" , site = site , cmtitle = category . title ( underscore = True , with_ns = True ) , cmprop = "title|type|timestamp" , cmnamespace = "|" . join ( str ( n ) for n in namespaces ) , cmtype = "page" , cmsort = "timestamp" , cmstart = start_time . isoformat ( ) , cmend = end_time . isoformat ( ) , ) : if row . get ( "type" , "page" ) != "page" : continue yield ( pywikibot . Page ( site , title = row . get ( "title" , "" ) , ns = row . get ( "ns" , "" ) ) , pywikibot . Timestamp . fromISOformat ( row . get ( "timestamp" ) ) , )
short_docstring: Use API to list category pages.
short_docstring_tokens: Use API to list category pages .
comment: """Use API to list category pages. Called by get_new_categoryPages()"""