USE GOOGLER TO ‘GOOGLE’ DIRECTLY FROM YOUR LINUX TERMINAL

google-from-linux-terminalGoogle is the world’s most used search engine, dedicatedly used by billions of people every day and now there is a reason for you not to leave your workflow to use it.

Enter Googler, Google in Your Linux Terminal

Googler is an easy-to-use command-line utility for Googling right from your terminal window. It supports three main types of Google Searches:

  • Google Search: equivalent to searching on Google homepage.
  • Google News Search: equivalent to searching on Google News.
  • Google Site Search: searching for results from a specific site.

Googler shows the search results with the title, URL and page excerpt and you can open the results directly in the browser.

Installing on Ubuntu

You will need to have python version 3.3 or later installed and if you don’t upgrade it.

And although Googler is not yet available via the package repository on Ubuntu you can install it from the GitHub repository. Run the following commands:

cd /tmp
git clone https://github.com/jarun/googler.git
cd googler
sudo make install
cd auto-completion/bash/
sudo cp googler-completion.bash /etc/bash_completion.d/

And that’s it. You have Googler installed along with command autocompletion feature on your system.

Googler Features & Basic Usage:

  • Interactive Interface: Run the command in your terminal:
    googler

    This will open the interactive interface -one which the Googler developer, Arun Prakash Jana calls the omniprompt. You can enter ? to see the available commands. From the omniprompt, enter any phrases to initiate a search. If you want to open any search result in a browser window enter the index number of that result or open the search page itself by entering o .

  • News Search: To search News, start googler with the N optional argument:O
    googler -N
    

    Omniprompt will load results from Google News.

  • Site Search: Search pages from a specific site by running googler withw {domain} argument
    googler -w ubuntunext.com
  • Manual Page: Run the following command for Googler manual page equipped with various examples:
    man googler
  • Google country/domain specific search
    googler -c in "hello world"
  • Filter search results by duration and language preference.
  • Google search keywords support, like: site:example.com or filetype:pdfetc.
  • HTTPS proxy support.
  • Disable automatic spelling correction.
  • Shell commands autocomplete.

You can check the terminal recording attached to the GitHub project page to get a graphical demo of Googler’s various features

What do you think about this tool? How useful will it be to you? Do you even use Google at all? Let us know in the comments section below.

About The Author
Okoi Martins Jr.
I'm a Computer Scientist with a passion for learning new things in fields ranging from theoretical implications of computer science and mathematical modeling to web development and music. In my spare time, I listen to music, read like a compiler, and learn like an A.I algorithm.

Leave a Response