Skip to content

Please Add Pagination Support for Reverse Image Search #253

Open
@iJarmin

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions