GOOGLER(1) | User Commands | GOOGLER(1) |
googler - Google from the command-line
googler [OPTIONS] [KEYWORD [KEYWORD ...]]
googler is a command-line tool to search Google (Web & News) from the terminal. Google site search works too. googler shows the title, URL and text context for each result. Results are fetched in pages. Next or previous page navigation is possible using keyboard shortcuts. Results are indexed and a result URL can be opened in a browser using the index number. There is no configuration file as aliases serve the same purpose for this utility. Supports sequential searches in a single instance.
Features
* Google Search, Google Site Search, Google News
* Fast and clean (no ads, stray URLs or clutter), custom color
* Navigate result pages from omniprompt, open URLs in browser
* Effortless keyword-based site search with googler @t add-on
* Search and option completion scripts for Bash, Zsh and Fish
* Fetch n results in a go, start at the n<sup>th</sup> result
* Disable automatic spelling correction and search exact keywords
* Specify duration, country/domain (default: worldwide/.com), language
* Google keywords (e.g. filetype:mime, site:somesite.com)
support
* Open the first result directly in browser (as in I'm Feeling Lucky)
* Non-stop searches: fire new searches at omniprompt without exiting
* HTTPS proxy, User Agent, TLS 1.2 (default) support
* Comprehensive documentation, man page with handy usage examples
* Minimal dependencies
googler @t is a convenient add-on to Google Site Search with unique keywords. While googler has an integrated option to search a site, it could be simplified further with aliases. The file googler_at (https://github.com/jarun/googler/blob/master/auto-completion/googler_at/googler_at) contains a list of website search aliases. To source it, run:
or
With googler @t, the following command searches Wikipedia for hexspeak:
Other googler options can be combined. The shell can be configured to be source the file at start-up for further convenience.
All the aliases start with the @ symbol (hence the name googler @t) and there is minimum chance they will conflict with any shell commands. Users can add new aliases to the file.
googler allows you to customize the color scheme via a six-letter string, reminiscent of BSD LSCOLORS. The six letters represent the colors of
Letter | Color/Style |
a | black |
b | red |
c | green |
d | yellow |
e | blue |
f | magenta |
g | cyan |
h | white |
i | bright black |
j | bright red |
k | bright green |
l | bright yellow |
m | bright blue |
n | bright magenta |
o | bright cyan |
p | bright white |
A-H | bold version of the lowercase-letter color |
I-P | bold version of the lowercase-letter bright color |
x | normal |
X | bold |
y | reverse video |
Y | bold reverse video |
googler hello world
googler -n 15 -s 3 -t m14 -w imdb.com jungle book
googler -N gadgets
googler -c in -l en IPL cricket
googler it\'s a \"beautiful world\" in spring
googler instrumental filetype:mp3
googler -x googler
googler -j leather jackets
googler -w amazon.com -w ebay.com digital camera
alias define='googler -n 2 define'
g n
g g keywords
g 1
googler -C hello world < input > output
googler -C hello world | tee output
googler --colors bjdxxy google
GOOGLER_COLORS=bjdxxy googler google
googler --proxy localhost:8118 google
googler 'hello w<TAB>
Henri Hakkinen
Arun Prakash Jana <engineerarun@gmail.com>
Zhiming Wang <zmwangx@gmail.com>
https://github.com/jarun/googler
https://github.com/jarun/googler/issues
Copyright © 2008 Henri Hakkinen
Copyright © 2015-2018 Arun Prakash Jana
<engineerarun@gmail.com>
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.
10 Oct 2018 | Version 3.7.1 |