Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do paging #28

Open
ocervell opened this issue Sep 7, 2024 · 0 comments
Open

How to do paging #28

ocervell opened this issue Sep 7, 2024 · 0 comments

Comments

@ocervell
Copy link

ocervell commented Sep 7, 2024

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant