Page¶
-
class
Page¶ -
A ``Page`` presents a page of results as returned by a query on an endpoint of CrunchBase, e.g. the `/organizations` endpoint. A
Pagecontains information on how items there are per page, the current page number, amongst others.-
items_per_page¶ an
intrepresenting the maximum number of items there can be in a page
-
current_page¶ The page number of this current page
-
number_of_pages¶ Number of pages there are for this query result
-
next_page_url¶ A url that you can request to get the next page of data
-
prev_page_url¶ A url that you can request to get the prev page of data
-
total_items¶ Total number of items that exist for this endpoint/query
-
sort_oder¶ The sorting order of this list of results
-
get(i)¶ Gets the i-th element in this page, 0-based.
Parameters: i (int) – Index of
PageItemto get, 0-based.Returns: the
PageItemReturn type: PageItemRaises: - IndexError – if i is out the bounds
- TypeError – if i is not an int
-