You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
First, I discovered that this module has been non-functional for some time, possibly quite a while. The lack of reported issues until now suggests limited usage, as I only noticed the dysfunction after testing the demo code following your issue submission.
Secondly, the primary developers of this project rarely utilize this engine and have concerns about its reliability due to inconsistent search results.
Lastly, while I appreciate your suggested modifications, they may not be practical in this context. The module currently requires multiple requests to obtain final search results, making it vulnerable to failures if any single request fails. Adding additional requests for pagination would likely further reduce the module's reliability.
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.
The text was updated successfully, but these errors were encountered: