-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Pagination on a search result #416
Comments
You can iterate through the results using the from deezer import Client
cli = Client()
# default search: fetch the first results with the default length (25)
cli.search("Black Eyed Peas")
# fetch the first results with the with a page length of 50
cli.search("Black Eyed Peas", limit=50)
# fetch 20 results, starting from the one at index 21
cli.search("Black Eyed Peas", limit=20, index=21) |
Assuming the original issue was solved, it will be automatically closed now. |
@browniebroke
cheers |
Yes this was changed when the pagination was reworked to work transparently. See the documentation for and example: https://deezer-python.readthedocs.io/en/stable/usage.html#first-steps This page links to the section about pagination where it explains in detail the various use cases that were asked about here. |
Crystal clear, really appreciate it @browniebroke |
Hello,
sorry if it's not the good place to ask this but I didn't find anything on the documentation about it.
I'm a bit lost how to have more than 100 results in a search
how work the pagination with a search result?
Thank in advance
The text was updated successfully, but these errors were encountered: