Description
Description:
I would like to suggest adding support for pagination in the BaiDu reverse image search API client. Currently, the search results only return the first page of results, and there is no mechanism to handle pagination to retrieve subsequent pages of results.
Problem:
• When performing a reverse image search, the results are usually paginated.
• The current implementation only processes the first page of results.
• If the number of results is large, subsequent pages of results are not retrieved, which limits the search coverage.
Solution:
• Pagination Handling: Add logic to automatically handle pagination by detecting the presence of a next page URL (e.g., in cardData).
• Recursive Requesting: Once the first page is fetched, the client should check for a “next” page link (e.g., firstUrl) and continue to request the next page until no further pages are available.
• Combining Results: All pages should be combined into a single response, providing the complete set of results.
Activity