themoviedb icon indicating copy to clipboard operation
themoviedb copied to clipboard

How to do paging

Open ocervell opened this issue 5 months ago • 0 comments

Hi there,

First thanks for this very-well written Python API binding for TMDB API: saves my life !

I'm currently searching movies like this:

movies = tmdb_client.search().movies(query=title, primary_release_year=year)

but it returns only 20 results, since I suppose it queries only the first page.

Is it up to me to pass the page parameter and increase it till there is no result, or is there a utility that I'm unaware of that can do that for me automatically ? Is there a way to know the total number of pages ?

Thank you !

ocervell avatar Sep 07 '24 13:09 ocervell