docs: def get_all_page_ids_from_space(confluence, space_key):
      """
      :param confluence:
      :param space_key:
      :return:
      """
      limit = 500
      flag = True
      step = 0
      page_ids = []
  
      while flag:
          values = confluence.get_all_pages_from_space(space=space_key, start=limit * step, limit=limit)
          step += 1
          if len(values) == 0:
              flag = False
              print("Did not find any pages, please, check permissions")
          else:
              for value in values:
                  print("Retrieve page with title: " + value['title'])
                  page_ids.append((value['id']))
      print("Found in space {} pages {}".format(space_key, len(page_ids)))
      return page_ids