+5 votes
305 views
Commands to search Google using Googler on Linux

in Linux / Unix by (552k points)
reopened | 305 views

1 Answer

+3 votes
Best answer

1. Googler installation and Python validation
2. How to install Googler on Linux
3. How to use Googler on Linux

It is no secret to anyone that the most powerful search engine in the world is Google for its extensive database and response time. When using Linux distributions we know very well that we are facing a terminal and command line environment where the management and support is carried out through a series of commands , some complex and others not so much..

The commands to be used in Linux are powerful because of their range of coverage and scope, but what we do not know today is that through the command line we have the opportunity to access a browser and perform the search in a traditional way, And as we said, the first search engine to use is Google .

Well, we have Googler to perform specific searches of millions of terms as needed.
TechnoWikis will explain through this tutorial how to install and use Googler in Linux environments, in this case Ubuntu 17 Server..

What is Googler?
Googler has been developed as a tool for Google (Web & News) and Google Site Search to be executed from the command line. The results of Googler allow us to see the title, the URL and the summary of each result, which can be opened directly in a browser from the terminal. The results are obtained on the pages (with page navigation) and Googler supports sequential searches in a single instance of Google.

Googler was designed to be used on servers without a graphical interface, or GUI, and this is the possibility of being integrated into a text-based browser.

We must know that Googler is not part of Google.

Googler features
Within the different features of Googler we have:
  • Google Search, Google Site Search and Google News
  • Fast and clean since it has no ads, lost URLs or design clutter
  • We can browse the results pages from omniprompt, and open the URLs in the browser directly
  • Search for keywordless sites based on keywords with the Google @t plugin
  • Search scripts and finalization of options for Bash, Zsh and Fish
  • Possibility of obtaining thousands of results in a simple way
  • Disable automatic spell checking and search for exact keywords
  • It is possible to specify the duration, country / domain (default: world / .com), language and other values.
  • Use Google keywords
  • We can open the first result directly in the browser
  • Possibility of searching without leaving the terminal
  • Compatible with HTTPS Proxy, User Agent, TLS 1.2 support (default)
  • Complete documentation, manual page with practical examples of use
  • Minimum dependencies

1. Googler installation and Python validation


Googler will not find it in the official repositories and therefore we must resort to the GitHub repositories that is where it is hosted.

To install Googler it will be necessary that we have Python 3 and we can validate the current version of Python by running the following:

 python3 –version 
image

In case of not having Python 3 we can execute any of the following commands:

 Ubuntu / Debian: sudo apt-get install python3.4 Fedora: sudo dnf install python3.4. 
Installation of the Git packages
Once we confirm that we have this version of Python, we proceed to the installation of the Git packages by executing the following command:
 sudo apt install git 
image

Enter the letter S to confirm the download and installation of the package.


2. How to install Googler on Linux


Once downloaded Git we proceed to access the / tmp directory using the following line:
 cd / tmp 
Then we clone Googler by executing the following line:
 git clone https://github.com/jarun/googler.git 
image

We access the Googler directory:

 cd googler 
We proceed to execute the installation:
 sudo make install 
Then we can run the following line to run Googler in standalone mode:
 ./googler 
image

3. How to use Googler on Linux

Step 1

There, can we enter the sign? deploy Googler's help: image

To use Googler just take into account the following syntax:

 googler "query" 
For example:
 Googler TechnoWikis 
image

We can see the first 10 results..

Step 2

If we want to search the results in Google News, we will execute the following syntax:
 googler –news query googler –news TechnoWikis 
image
Step 3

Another option available is to search for a specific topic in a domain as follows:
 googler -w solvetic.com WannaCry 
image
Step 4

Alternatively, if we do not want to display all the results we can use the COUNT parameter and indicate the amount of results to be displayed:
 googler –count = 4 Firefox Quantum 
To see the full Googler help, we will execute the following line:
 man googler 
image

We can see how Googler is an ally for the entire Google search topic.


by (3.5m points)
edited

Related questions

+3 votes
1 answer
+5 votes
1 answer
asked Nov 17, 2019 in Linux / Unix by backtothefuture (552k points) | 511 views
+5 votes
1 answer
asked Jun 3, 2020 in Security by backtothefuture (552k points) | 323 views
+5 votes
1 answer
asked Sep 8, 2020 in Linux / Unix by backtothefuture (552k points) | 867 views
+3 votes
1 answer
asked Nov 21, 2019 in Linux / Unix by backtothefuture (552k points) | 344 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users