william chaplin
02/01/2024, 8:33 PMEdgar Ramírez (Arch.dev)
02/01/2024, 8:41 PMwilliam chaplin
02/01/2024, 10:48 PMEdgar Ramírez (Arch.dev)
02/01/2024, 10:53 PM?page_size=100
then request the next page with ?page_size=100&page=2
? (or is there a link to public API docs?)Edgar Ramírez (Arch.dev)
02/01/2024, 10:54 PMwilliam chaplin
02/01/2024, 10:54 PMwilliam chaplin
02/01/2024, 10:55 PMwilliam chaplin
02/01/2024, 10:56 PMEdgar Ramírez (Arch.dev)
02/01/2024, 11:52 PMclass MyPaginator(BasePageNumberPaginator):
def has_more(self, response):
return <use the response to determine if the api has any more pages and return True or False>
class MyStream(RESTStream):
def get_new_paginator(self):
return MyPaginator(1)
def get_url_params(self, context, next_page_token):
return {"pagesize": 500, "page": next_page_token or 1}
william chaplin
02/02/2024, 12:01 AMwilliam chaplin
02/02/2024, 12:08 AMwilliam chaplin
02/02/2024, 2:02 AM