felix_fabian_koch
09/12/2021, 10:16 AMvisch
09/14/2021, 3:05 AMfelix_fabian_koch
09/14/2021, 6:14 AMdef parse_response(self, response: requests.Response) -> Iterable[dict]:
"""Parse the response and return an iterator of result rows."""
# TODO: Parse response body and return a set of records.
if(response.status_code == 204):
return None
yield from extract_jsonpath(self.records_jsonpath, input=response.json())
and
def get_next_page_token(
self, response: requests.Response, previous_token: Optional[Any]
) -> Optional[Any]:
"""Return a token for identifying next page or None if no more pages."""
if(response.status_code == 204):
return None
...
visch
09/14/2021, 12:28 PMvisch
09/14/2021, 12:29 PMvisch
09/14/2021, 12:29 PMfelix_fabian_koch
09/15/2021, 6:23 AM