Auch über die Kommandozeile kann google abgesucht werden. Bereits seit 2008 gibt es dazu von Henri Hakkinen das Tool "googler".
Derzeit wird es entwickelt von Arun Prakash Jana und Zhiming Wang.
Neben googler gibt es auch das tool ddgr für Suche über DuckDuckgo.
Projektseite:
https://github.com/jarun/googler
Infos zu googler:
Zitat
googler is a power tool to Google (Web & News) and Google Site Search from the command-line. It shows the title, URL and abstract for each result, which can be directly opened in a browser from the terminal. Results are fetched in pages (with page navigation). Supports sequential searches in a single googler instance.
googler was initially written to cater to headless servers without X. You can integrate it with a text-based browser. However, it has grown into a very handy and flexible utility that delivers much more. For example, fetch any number of results or start anywhere, limit search by any duration, define aliases to google search any number of websites, switch domains easily... all of this in a very clean interface without ads or stray URLs. The shell completion scripts make sure you don't need to remember any options.
googler isn't affiliated to Google in any way.
Installation unter Ubuntu 16.04 LTS :
Das hinzufügen zu den Paketquellen mit anschliessender Installation über
sudo add-apt-repository ppa:twodopeshaggy/jarun
installiert nur die Version 3.4, die durch Änderungen bei google inzwischen nur noch "no results" ausgibt!!!
Daher: Installation der neuesten Version (3.9), die man auf der Projektseite herunterladen kann:
Aktuelle Version: googler 3.9
Zitat
googler v3.9
@jarun released this on 30 May 2019
What's in?
fix issue - googler showing "No results."
show matched keywords in bold in result abstracts
option --colorize for more control on colors
better support for colors on Windows
switch to CircleCI from Travis
option --noua is deprecated (noop) and will be removed in future
Installation von googler 3.9 unter Lubuntu 1604:
Download des aktuellen .deb - Paketes unter:
https://github.com/jarun/googler/releases/
googler_3.9-1_ubuntu16.04.amd64.deb , 39.2 KB
Download-link:
https://github.com/jarun/googler/releases/download/v3.9/googler_3.9-1_ubuntu16.04.amd64.deb
Dann doppelklick, oder öffnen mit gdebi
Nach erfolgreicher Installation:

Ubuntu-Manpage zu googler:
http://manpages.ubuntu.com/manpages/bionic/man1/googler.1.html
http://manpages.ubuntu.com/manpages/bion.../googler.1.html
Hilfe zur Bedienung von googler im Terminal:
googler -h
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
usage: googler [-h] [-s N] [-n N] [-N] [-c TLD] [-l LANG] [-x]
[--colorize [{auto,always,never}]] [-C] [--colors COLORS] [-j]
[-t dN] [-w SITE] [--unfilter] [-p PROXY] [--noua] [--notweak]
[--json] [--url-handler UTIL] [--show-browser-logs] [--np] [-u]
[--include-git] [-v] [-d]
[KEYWORD [KEYWORD ...]]
Google from the command-line.
positional arguments:
KEYWORD search keywords
optional arguments:
-h, --help show this help message and exit
-s N, --start N start at the Nth result
-n N, --count N show N results (default 10)
-N, --news show results from news section
-c TLD, --tld TLD country-specific search with top-level domain .TLD,
e.g., 'in' for India
-l LANG, --lang LANG display in language LANG
-x, --exact disable automatic spelling correction
--colorize [{auto,always,never}]
whether to colorize output; defaults to 'auto', which
enables color when stdout is a tty device; using
--colorize without an argument is equivalent to
--colorize=always
-C, --nocolor equivalent to --colorize=never
--colors COLORS set output colors (see man page for details)
-j, --first, --lucky open the first result in web browser and exit
-t dN, --time dN time limit search [h5 (5 hrs), d5 (5 days), w5 (5
weeks), m5 (5 months), y5 (5 years)]
-w SITE, --site SITE search a site using Google
--unfilter do not omit similar results
-p PROXY, --proxy PROXY
tunnel traffic through an HTTP proxy; PROXY is of the
form [http://][user:password@]proxyhost[:port]
--noua legacy option (no effect)
--notweak disable TCP optimizations and forced TLS 1.2
--json output in JSON format; implies --noprompt
--url-handler UTIL custom script or cli utility to open results
--show-browser-logs do not suppress browser output (stdout and stderr)
--np, --noprompt search and exit, do not prompt
-u, --upgrade perform in-place self-upgrade
--include-git when used with --upgrade, get latest git master
-v, --version show program's version number and exit
-d, --debug enable debugging
omniprompt keys:
n, p fetch the next or previous set of search results
index open the result corresponding to index in browser
f jump to the first page
o [index|range|a ...] open space-separated result indices, numeric ranges
(sitelinks unsupported in ranges), or all, in browser
open the current search in browser, if no arguments
O [index|range|a ...] like key 'o', but try to open in a GUI browser
g keywords new Google search for 'keywords' with original options
should be used to search omniprompt keys and indices
c index copy url to clipboard
u toggle url expansion
q, ^D, double Enter exit googler
? show omniprompt help
* other inputs issue a new search with original options
Version 3.9
Copyright © 2008 Henri Hakkinen
Copyright © 2015-2019 Arun Prakash Jana <engineerarun@gmail.com>
Zhiming Wang <zmwangx@gmail.com>
License: GPLv3
Webpage: https://github.com/jarun/googler