GOOGLER(1)
β¨ googler(1) β User Commands, but make it iconic β¨
okay so bestie, buckle UP, because googler is about to become your new main character π
πΈ NAME πΈ
googler β Google from the command-line. yes really. the whole entire Google, in your terminal, no browser window required π¦
π SYNOPSIS π
googler [OPTIONS] [KEYWORD [KEYWORD ...]]
π DESCRIPTION π
googler is a command-line tool that lets you search Google β web, news, videos and site search β straight from the terminal. Google site search works too, obvs. For every result, googler shows you the title, the URL and the text context. Results come in pages, and you can flip to the next or previous page with keyboard shortcuts. Results are indexed, so you can just yeet a result URL into a browser by typing its index number. There's no config file, because aliases do the same job for this utility β and it supports sequential searches in a single instance, so you never have to leave. periodt.
β 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-th 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
like... minimal dependencies?? she's low maintenance AND high value. we love that for us π«Ά
β¨ OPTIONS β¨
-h,--helpβ Show help text and exit. the "just tell me what to do" button π-s,--start=Nβ Start at the Nth result. skip to your moment.-n,--count=Nβ Show N results (default10).-N,--newsβ Show results from news section. for when you need the tea, freshly brewed β-c,--tld=TLDβ Country-specific search with top-level domain.TLD, e.g.,infor India.-l,--lang=LANGβ Search for the language LANG, e.g.,fifor Finnish.-g,--geoloc=CCβ Country-specific geolocation search with country code CC, e.g.'in'for India. Country codes are the same as top-level domains.-x,--exactβ Disable automatic spelling correction. Search exact keywords. she said what she said π-C,--nocolorβ Disable color output.--colors=COLORSβ Set output colors. Refer to the COLORS section below for details.-j,--first,--luckyβ Open the first result in a web browser; implies--noprompt. Feeling Lucky? π-t,--time=dNβ Time limit search [h5(5 hrs),d5(5 days),w5(5 weeks),m5(5 months),y5(5 years)].-w,--site=SITEβ Search a site using Google.-e,--exclude=EXCLUDEβ Exclude site from results. not on my feed, thank you π--unfilterβ Do not omit similar results. give me ALL of them, no gatekeeping.-p,--proxy=PROXYβ Tunnel traffic through an HTTP proxy. PROXY is of the form[http://][user:password@]proxyhost[:port]. The proxy server must support HTTP CONNECT tunneling and must not block port443for the relevant Google hosts. If a proxy is not explicitly given, thehttps_proxyenvironment variable (if available) is used instead.--nouaβ Disable user agent. Results are fetched faster. speed. β‘--notweakβ Disable TCP optimizations. Negotiate Transport Layer Security protocol instead of forcing TLS 1.2 (on Python 3.4 and above). Should be used only in case of connection issues.
bestie listen β only reach for this one if you're actually having connection issues. it's not a vibe-boost, it's a troubleshooting move.
--jsonβ Output in JSON format; implies--noprompt.--url-handler=UTILβ Custom script or command-line utility to open urls with.--show-browser-logsβ Do not suppress browser output when opening result in browser; that is, connect stdout and stderr of the browser togoogler's stdout and stderr instead of/dev/null. By default, browser output is suppressed (due to certain graphical browsers spewing messages to console) unless theBROWSERenvironment variable is a known text-based browser:elinks,links,lynx,w3morwww-browser.--np,--nopromptβ Perform search and exit; do not prompt for further interactions. in and out, no small talk π-u,--upgradeβ Perform in-place self-upgrade. By default, the latest stable version is used. However, the latest git master is used instead if--include-gitis also supplied. This mechanism is not available on Windows (including Cygwin), and if you installedgooglerwith a package manager, this mechanism may have been disabled by your packager at packaging or install time.--include-gitβ See--upgrade.-v,--versionβ Show version number and exit.-d,--debugβ Enable debugging.
π OMNIPROMPT KEYS π
this is the part where googler looks at you and goes "soβ¦ what do we do now?" and you get to type stuff β¨
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 indices, if'a'is specified, in the browser. Open the current search in the browser, if no arguments.O [index|range|a ...]β Works similar to key'o', but tries to ignore text-based browsers (even ifBROWSERis set) and open links in a GUI browser.g keywordsβ Initiate a new Google search for keywords with original options. This key should be used to search omniprompt keys (including itself) and indices.c indexβ Copy url to clipboard.uβ Toggle url expansion.q,^D, double Enter β Exitgoogler.?β Show omniprompt help.*β Any other string initiates a new search with original options.
π¦ GOOGLER @T π¦
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:
source googler_at
or
. googler_at
With googler @t, the following command searches Wikipedia for hexspeak:
@w 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.
like the naming?? @ + t = @t. it's giving genius, it's giving pun, it's giving iconic π§
π COLORS π
googler lets you customize the color scheme via a six-letter string, reminiscent of BSD LSCOLORS. The six letters represent the colors of
- indices
- titles
- URLs
- metadata/publishing info (Google News only)
- abstracts
- prompts
respectively β in that exact order, bestie, don't shuffle them. The six-letter string is passed in either as the argument to the --colors option, or as the value of the environment variable GOOGLER_COLORS.
We offer the following colors/styles:
aβ blackbβ redcβ greendβ yelloweβ bluefβ magentagβ cyanhβ whiteiβ bright blackjβ bright redkβ bright greenlβ bright yellowmβ bright bluenβ bright magentaoβ bright cyanpβ bright whiteA-Hβ bold version of the lowercase-letter colorI-Pβ bold version of the lowercase-letter bright colorxβ normalXβ boldyβ reverse videoYβ bold reverse video
The default colors string is GKlgxy, which stands for
- bold bright cyan indices
- bold bright green titles
- bright yellow URLs
- cyan metadata/publishing info
- normal abstracts
- reverse video prompts
Note that
- Bright colors (implemented as
\x1b[90m-\x1b[97m) may not be available in all color-capable terminal emulators; - Some terminal emulators draw bold text in bright colors instead;
- Some terminal emulators only distinguish between bold and bright colors via a default-off switch.
Please consult the manual of your terminal emulator as well as https://en.wikipedia.org/wiki/ANSI_escape_code for details.
ngl terminal colors are lowkey a whole personality trait per emulator. check your own manual before you come for googler's palette π
π ENVIRONMENT π
BROWSERβ Overrides the default browser. Ref: http://docs.python.org/library/webbrowser.htmlGOOGLER_COLORSβ Refer to the COLORS section.DISABLE_PROMPT_COLORβ Force a plain omniprompt if you are facing issues with colors at the prompt.https_proxyβ Refer to the--proxyoption.DISABLE_URL_EXPANSIONβ Show the domain names in search results instead of the expanded URL.
β¨ EXAMPLES β¨
okay bestie, here are the vibes in action β copy-paste these and you're literally a googler god/goddess π
- Google
hello world:
googler hello world
- Fetch 15 results updated within the last 14 months, starting from the 3rd result for the keywords
jungle bookin siteimdb.com:
googler -n 15 -s 3 -t m14 -w imdb.com jungle book
- Read recent news on gadgets:
googler -N gadgets
- Fetch results on
IPL cricketfrom Google India server in English:
googler -c in -l en IPL cricket
- Search quoted text:
googler it\'s a \"beautiful world\" in spring
- Search for a specific file type:
googler instrumental filetype:mp3
- Disable automatic spelling correction, e.g. fetch results for
googlerinstead ofgoogle:
googler -x googler
- I'm feeling lucky search:
googler -j leather jackets
- Website specific search:
googler -w amazon.com -w ebay.com digital camera
Site specific search continues at omniprompt. β¨
- Alias to find definitions of words:
alias define='googler -n 2 define'
- Look up
n,p,o,O,q,gkeywords or a result index at the omniprompt: as the omniprompt recognizes these keys or index strings as commands, you need to prefix them withg, e.g.,
g n
g g keywords
g 1
- Input and output redirection:
googler -C hello world < input > output
Note that -C is required to avoid printing control characters (for colored output). don't skip it bestie π
- Pipe output:
googler -C hello world | tee output
- Use a custom color scheme, e.g., one warm color scheme designed for Solarized Dark:
googler --colors bjdxxy google
GOOGLER_COLORS=bjdxxy googler google
- Tunnel traffic through an HTTPS proxy, e.g., a local Privoxy instance listening on port
8118:
googler --proxy localhost:8118 google
By default the environment variable https_proxy is used, if defined.
- Quote multiple search keywords to auto-complete (using completion script):
googler 'hello w<TAB>
π AUTHORS π
These iconic humans made the magic happen:
- Henri Hakkinen
- Arun Prakash Jana
<engineerarun@gmail.com> - Zhiming Wang
<zmwangx@gmail.com>
π HOME π
the mothership: https://github.com/jarun/googler
π REPORTING BUGS π
found a bug? spill the tea here: https://github.com/jarun/googler/issues
π LICENSE π
Copyright Β© 2008 Henri Hakkinen Copyright Β© 2015-2021 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.
okay bestie that's the whole entire page π this was GOOGLER(1), version 4.3.2, dated 21 Jan 2021 β now go forth and Google like the main character you are β¨π
π¦ where this page comes from
- debian bookworm: googler 4.3.13-1 Β· GPL-3.0-or-later
- fedora 43: googler 4.3.2-12.fc43 Β· GPL-3.0-or-later
- fedora 44: googler 4.3.2-13.fc44 Β· GPL-3.0-or-later
- opensuse-leap 16.0: googler 4.3.13-bp160.1.9 Β· GPL-3.0-or-later
- ubuntu jammy: googler 4.3.2-1 Β· GPL-3.0-or-later
- ubuntu noble: googler 4.3.13-1 Β· GPL-3.0-or-later
- ubuntu questing: googler 4.3.13-1
- ubuntu resolute: googler 4.3.13-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: googler 4.3.13-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms