Fix(Google): use GSA user agents#428
Merged
Merged
Conversation
yeyuchen198
reviewed
Mar 14, 2026
yeyuchen198
left a comment
There was a problem hiding this comment.
It is necessary to include the num=10 parameter; otherwise, Google may sometimes return a page without organic results, containing only sponsored ads.
For example:
https://www.google.com/search?q=toys&start=0&num=10
It still seems unstable. Even when |
bea22ac to
4bd94b7
Compare
The Google search results HTML structure has changed, requiring updates to the XPath selectors for items, title, href, and body elements. Also restructured the user agent generation to use an iOS version to GSA version mapping for more accurate user agent strings.
4bd94b7 to
17b59ac
Compare
Owner
|
Thanks! |
|
seems not working again, what a google now... and its API is ready to close |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I did confirm that Google now works again.
Fixes #412