Google is crazy!
GuideA small question: What do you do every day? Of course, there are many things, but I can point out one thing. You use Google to search almost every day. Am I right? Now, if you are a Linux User, there is another problem: If you don't even have to leave the terminal to perform Google search, isn't that great? You don't even need to open a browser window?
If you are a * nix-like system enthusiast and a user who prefers terminal interfaces, I know your answer is yes, and I think, next, you will also like the pretty little tool that I will introduce today. It is called Googler.
Googler: googleGoogler is a simple command line tool used for google search directly in the command line window. Googler mainly supports three types of Google Search:
- Google Search: A simple Google search is equivalent to a Google homepage search.
- Google News search: Google News search is the same as Google News.
- Google site search: search results from a specific website.
Googler displays search results using titles, links, and webpage summaries. The search results can be opened directly in the browser by pressing only two buttons.
Install Googler in UbuntuLet's install the software first. First, make sure that your python version is greater than or equal to 3.3. You can run the following command to view the python version.
python3 --version
If not, update it. Googler requires python version 3.3 and later. Although Googler cannot be found in the Ununtu software library, we can easily install it from the GitHub repository. We need to run the following command:
cd /tmpgit clone https://github.com/jarun/googler.gitcd googlersudo make installcd auto-completion/bash/sudo cp googler-completion.bash /etc/bash_completion.d/
In this way, Googler automatically installs the feature with the command.
Features & basic usageIf we quickly browse all of its features, we will find that Googler is actually a very powerful tool, and its main features are:
Interactive InterfaceRun the following command on the terminal:
googler
The interactive interface is opened. Arun Prakash Jana, a developer of Googler, is calledOmnidirectional prompt, You can enter? Find available command parameters:
At the prompt, enter any search term keyword to start the search. Then you can enter n or p to navigate to the next page of the search result and the previous page. To open the search result in the browser window, enter the search result number directly, or you can enter the o command to open the search webpage.
News searchIf you want to search for news, start Googler directly with the N parameter:
googler -N
Subsequent searches will capture results from Google News.
Site SearchIf you want to search from a specific site, start Googler with w domain name parameters:
googler -w itsfoss.com
The subsequent search will only capture results from this blog!
Manual pageRun the following command to view the Googler manual page with various use cases:
man googler/pre>
Google search engine in specified country/regiongoogler -c in "hello world"
The above example command will start to search results from Google's Indian domain name (in stands for India)
It also supports:
- • Filter search results by time and language preferences
- • Supports Google Keyword query, such as site: example.com or filetype: pdf.
- • Support for HTTPS Proxy
- • Auto-completion of Shell commands
- • Disable automatic spelling correction
More features are available here. You can use Googler to meet your needs.
Googler can also be integrated with some text-based browsers (such as elinks, links, lynx, and w3m), so you don't even have to leave the terminal to browse the Web page. You can find instructions on the Googler GitHub project page.
What is Googler's opinion?Although googler may not be necessary and eager for everyone, it is a great tool for people who do not want to open a browser for google search or want to soak in the terminal window. What do you think?
From: https://linux.cn/article-7792-1.html
Address: http://www.linuxprobe.com/googler-linux-google.html