-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Google never returns results: Sorry! we didn't find any results. Please use another query or search in more categories. #1748
Comments
Probably related to #1704 and #1596. In summary Google is trying to push his new UI and Searx doesn't handle it, so I guess we will have to find another workaround to load the old UI or stop supporting Google until a new engine for google is developed. EDIT: I tried to lower the Internet Explorer version to see if it would fallback to the old UI but it just doesn't want to, EDIT²: While searching for very old browsers, I found a working user agent that triggered the old Google Search UI: params['headers']['User-Agent'] = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)" with this one: params['headers']['User-Agent'] = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.0 Safari/525.13" |
unifox fix works fine. Maybe we should made the useragent used for querying google a config parameter, so can be easily changed by the user. |
Yeah why not but it's not that useful as a feature because most of the time if someone finds a new ideal user agent he will also know how to change the python code. |
@unixfox Hi, I used docker to setup my SearX instance, is there any way to change that python code with docker? Thanks. |
@lucky13820 you can pull PRs, like I do. To pull PR #1749:
Here is another example where I pulled #1702 --> merge https://github.com/return42/searx/commit/dfe1f7752 |
@return42 Thanks, I figured out. |
@lucky13820
|
Google just forced the new UI for the old Safari user agent that got included in the patch. |
That workaround died fast. So should we open a new issue to track it? I am willing to help, but I don't know anything about Python. I only know HTML/CSS and some basic programming knowledge. |
Did anyone try one of the Lynx user agents to see what would happen? At this point it's worth a go. |
@virtadpt Yes I did here: #1749 (comment) I bet there is no other user agent that could trigger again the old UI, that's why we need #1628 to get merged as soon as possible. |
Google is never returning any results. I always get "Sorry! we didn't find any results. Please use another query or search in more categories."
To troubleshoot, I set debug : True in settings.yml
I can see the request with no errors in the searx.log file:
so it isn't timing out or throwing an error.
If I take the same GET and try it with curl:
curl -A "Mozilla/5.0" "https://www.google.com/search?q=who+is+the+lead+developer+of+openssl&start=0&gws_rd=cr&gbv=1&lr=lang_en-GB&hl=en-GB&ei=x"
I get the complete webpage result and I can the search data:
Why does searx not display the page and instead reports that it didn't find any results?
The text was updated successfully, but these errors were encountered: