google-sr icon indicating copy to clipboard operation
google-sr copied to clipboard

[BUG]: google-sr not returning any results

Open typicalninja opened this issue 4 months ago • 4 comments

Google appears to have fully deprecated support for non-JavaScript browsers, which previously allowed us to fetch the query result page without executing heavy Javascript. This means our existing approach no longer works unless we introduce a headless browser to execute the JavaScript on Google’s search pages.

This is related to #53, where we had bypassed the JavaScript requirement by spoofing an older browser user agent. That workaround is no longer effective.

As a result, google-sr should be considered in a deprecated state for the foreseeable future.

If you have any solution please feel free to comment them.

Image

typicalninja avatar Sep 17 '25 12:09 typicalninja

is there a fix?

raj-chinagundi avatar Sep 27 '25 22:09 raj-chinagundi

I am lookin into using a headless browser, but that is obv heavy and will not be usable for some users.

typicalninja avatar Sep 28 '25 16:09 typicalninja

What about using mobile phone user agent maybe google didn't applied js restrictions everywhere?

ghost avatar Sep 30 '25 21:09 ghost

What about using mobile phone user agent maybe google didn't applied js restrictions everywhere?

~Maybe? will check a mobile user agent when i get the chance~

~~All mobile browsers i checked still required js, still searching for solutions.~~

No solution unfortunately, please use the official API or another library that provide a actual browser based solution package is deprecated

RIP https://blog.google/technology/safety-security/serpapi-lawsuit/

typicalninja avatar Oct 01 '25 04:10 typicalninja

With the googles lawsuit and stuff, i don't think i can manage this repository, thanks for using the package. it will be archived soon

typicalninja avatar Dec 20 '25 14:12 typicalninja