docs: def categorymembers(self, category, results=10, subcategories=True):
          """ Get informaton about a category: pages and subcategories
  
              Args:
                  category (str): Category name
                  results (int): Number of result
                  subcategories (bool): Include subcategories (**True**) or not \
                                        (**False**)
              Returns:
                  Tuple or List: Either a tuple ([pages], [subcategories]) or \
                                 just the list of pages
              Note:
                  Set results to **None** to get all results """
          self._check_query(category, "Category must be specified")
  
          max_pull = 5000
          search_params = {
              "list": "categorymembers",
              "cmprop": "ids|title|type",
              "cmtype": ("page|subcat" if subcategories else "page"),
              "cmlimit": (results if results is not None else max_pull),
              "cmtitle": "{0}:{1}".format(self.category_prefix, category),
          }
          pages = list()
          subcats = list()
          returned_results = 0
          finished = False
          last_cont = dict()
          while not finished:
              params = search_params.copy()
              params.update(last_cont)
              raw_res = self.wiki_request(params)
  
              self._check_error_response(raw_res, category)
  
              current_pull = len(raw_res["query"]["categorymembers"])
              for rec in raw_res["query"]["categorymembers"]:
                  if rec["type"] == "page":
                      pages.append(rec["title"])
                  elif rec["type"] == "subcat":
                      tmp = rec["title"]
                      if tmp.startswith(self.category_prefix):
                          tmp = tmp[len(self.category_prefix) + 1 :]
                      subcats.append(tmp)
  
              cont = raw_res.get("query-continue", False)
              if cont and "categorymembers" in cont:
                  cont = cont["categorymembers"]
              else:
                  cont = raw_res.get("continue", False)
  
              if cont is False or last_cont == cont:
                  break
  
              returned_results += current_pull
              if results is None or (results - returned_results > 0):
                  last_cont = cont
              else:
                  finished = True
  
              if results is not None and results - returned_results < max_pull:
                  search_params["cmlimit"] = results - returned_results
          # end while loop
  
          if subcategories:
              return pages, subcats
          return pages