def get_next_page(self, page_num, page_size):
url = self._response_json.get(self.next_page_attr, None)<EOL>if url is None:<EOL><INDENT>raise StopIteration()<EOL><DEDENT>params, url = self.process_url(page_num, page_size, url)<EOL>response = self.response_handler.api._get(url, raw_response=True, params=params)<EOL>return response.json()<EOL>
Retrieve the next page of results.