Quote:
Originally Posted by ondoho
Google are very good at preventing this kind of non-standard usage of their services, and are shifting their APIs around all the time.
Just like youtube-dl, this type of software requires constant maintenance & updating.
|
^This. googler 3.7.1 is quite old. I'm getting similar results with googler 4.2 on CentOS 8:
Code:
$ googler -d hello world
[DEBUG] googler version 4.2
[DEBUG] Python version 3.6.8
[DEBUG] Platform: Linux-4.18.0-348.2.1.el8_5.x86_64-x86_64-with-centos-8.5.2111
The latest release of googler is v4.3.2, please upgrade.
[DEBUG] Connecting to proxy server localhost:8118
[DEBUG] Tunnelling to host www.google.com
[DEBUG] Opened socket to 127.0.0.1:8118
[DEBUG] Fetching URL /search?ie=UTF-8&oe=UTF-8&q=hello+world&sei=JQlJwk6OEeyfJgAZmb2hBg
[DEBUG] Cookie: CONSENT=PENDING+395
[DEBUG] Response body written to '/dev/shm/googler-response-921jqxfr.html'.
No results.
If you believe this is a bug, please review https://git.io/googler-no-results before submitting a bug report.
See
https://git.io/googler-no-results mentioned in the last line.
BTW,
/dev/shm/googler-response-921jqxfr.html shows the privacy policy message from Google with "Click here to agree", after which come the search results for "hello world". The name of the cookie in my case,
CONSENT=PENDING+395, is telling as well.
OTOH,
ddgr 1.9 works just fine there.
Update. To prove the point, I've just rebuilt googler 4.3.2 from Fedora Rawhide source RPM, and lo and behold, it works.