Skip to content

Fix(Google): use GSA user agents#428

Merged
deedy5 merged 2 commits into
deedy5:mainfrom
unixfox:fix-google-engine
Mar 14, 2026
Merged

Fix(Google): use GSA user agents#428
deedy5 merged 2 commits into
deedy5:mainfrom
unixfox:fix-google-engine

Conversation

@unixfox

@unixfox unixfox commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

I did confirm that Google now works again.

Fixes #412


  • Use GSA user agents for fetching Google results.

@yeyuchen198 yeyuchen198 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@yeyuchen198

Copy link
Copy Markdown

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 num=10 is added, Google sometimes returns zero organic results.

@deedy5 deedy5 force-pushed the fix-google-engine branch from bea22ac to 4bd94b7 Compare March 14, 2026 11:51
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.
@deedy5 deedy5 force-pushed the fix-google-engine branch from 4bd94b7 to 17b59ac Compare March 14, 2026 11:53
@deedy5 deedy5 merged commit 1c38694 into deedy5:main Mar 14, 2026
3 of 6 checks passed
@deedy5

deedy5 commented Mar 14, 2026

Copy link
Copy Markdown
Owner

Thanks!

@deedy5 deedy5 changed the title chore: use gsa user agent for google engine Fix(Google): use GSA user agents Mar 14, 2026
@yeyuchen198

Copy link
Copy Markdown

seems not working again, what a google now... and its API is ready to close

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No results with backend = google

3 participants