Tuesday, 20 September 2016

How To Google Search In Command Line Using Googler

What is googler ?
Googler allows you to use Google search in the Linux command line. This Linux command line utility can be used as a standalone tool or in combination with a text-based web browser. Developed using Python, Googler can be found on its developer’s GitHub repository.


 For Linux users, most of their daily activities revolve around the command line from listing contents of a directory, changing file permissions, installing packages, etc. How about using the internet? Well, there are text-based web browsers for Linux command line in existence. But what’s the first thing we open using these web browsers, it’s Google.
So, what if we could open Google directly without using the command line text-based web browser. Googler can make this happen. The command line utility has been uploaded to GitHub by jarun (Arun Prakash Jana).

The Googler command line utility, initially intended for Servers running GUI-less Linux distros, allows you to search Google and open the results using commands. You won’t be able to have rich graphics. That’s something the Linux users can sacrifice with ease.

How to Install Googler to use Google Search from Command Line

Googler is currently not available on repositories of famous Linux distos like Ubuntu. But you can install it from its GitHub repository. You need to execute the commands written below. But before that, you need to update your Python to version 3.3 or higher if you haven’t. To check your Python version:

          python –V

Install the Git package

When you proceed with the commands below, it may ask you to install Git. Go ahead using the command mentioned:

  sudo apt install git

Here are the commands to install Googler
After installing Git, run these commands one by one:

:cd /tmp

:git clone https://github.com/jarun/googler.git

:cd googler

:sudo make installcd auto-completion/bash/

:cd auto-completion/bash/

:sudo cp googler-completion.bash /etc/bash_completion.d/

How to Use Googler For Google Search In Command Line

The Googler command line utility allows you to access Google Search, Google News, and Google Site Search. Here are some examples which would help you get the hang of it:

Open Googler

In the Linux command line and type

 googler

 


 You can execute the queries directly from the command line prompt without opening the utility.

Do the Google Search

googler your_query

googler Blogger

 

When you type the number attached to the search result, the link will open in your web browser. You can open the link the command line itself by linking Googler with a text-based web browser. Go to jarun’s git hub page for the steps.

 Search on Google News:-

googler -–news your_query

googler –-news Kickasstorrent

googler -N your_query

googler -N Elon Musk

Search on a specific website

googler -w domain

 Alternatively,

googler -w facebook.com Edward Snowden

 

Limit the number of search results

googler --count=N your-query

 

Googler is a feature-packed Linux command line utility. Just like the normal google, you have the advantage of languages, region, time, etc. You can combine various options available on the man page to get most out of the Googler.
and to open any page just clivk on the link and it will open in the browser you have installed.

 

 

 

No comments:

Post a Comment