def METHOD_NAME(self, params, extra_ids=None):
    url = "https://35photo.pro/show_block.php"
    headers = {"Referer": self.root, "X-Requested-With": "XMLHttpRequest"}
    params["type"] = "getNextPageData"
    if "lastId" not in params:
        params["lastId"] = "999999999"
    if extra_ids:
        yield from extra_ids
    while params["lastId"]:
        data = self.request(url, headers=headers, params=params).json()
        yield from self._photo_ids(data["data"])
        params["lastId"] = data["lastId"]