Home » Questions » Computers [ Ask a new question ]

Google Search from Linux Terminal [closed]

Google Search from Linux Terminal [closed]

I saw a Google console app someone wrote a while back, but it was actually a website emulating a console.

Asked by: Guest | Views: 54
Total answers/comments: 6
Guest [Entry]

google-cli is supposed to do just that (it's the revived version of cli-google).
Guest [Entry]

"#!/bin/bash

if [[ $(echo $*) ]]; then

searchterm=""$*""

else

read -p ""Enter your search term: "" searchterm

fi

searchterm=$(echo $searchterm | sed -e 's/\ /+/g')

lynx -dump http://www.google.com/search?q=$searchterm | less

Copy and paste this script into ~/bin, name it ""goose"" or something (GOOgle SEarch). Chmod it +x

Usage is:

goose searchterm

Clearly, you have to have Lynx installed."
Guest [Entry]

"Lynx - a general purpose distributed information browser for the World Wide Web. Lynx is a fully-featured World Wide Web (WWW) client for users running cursor-addressable, character-cell display devices (e.g., vt100 terminals, vt100 emulators running on Windows 95/NT or Macintoshes, or any other ""curses-oriented"" display).

It will display hypertext markup language (HTML) documents containing links to files residing on the local system, as well as files residing on remote systems running Gopher, HTTP, FTP, WAIS, and NNTP servers. Current versions of Lynx run on Unix, VMS, Windows 95/NT, 386DOS and OS/2 EMX."
Guest [Entry]

"Lynx - a general purpose distributed information browser for the World Wide Web. Lynx is a fully-featured World Wide Web (WWW) client for users running cursor-addressable, character-cell display devices (e.g., vt100 terminals, vt100 emulators running on Windows 95/NT or Macintoshes, or any other ""curses-oriented"" display).

It will display hypertext markup language (HTML) documents containing links to files residing on the local system, as well as files residing on remote systems running Gopher, HTTP, FTP, WAIS, and NNTP servers. Current versions of Lynx run on Unix, VMS, Windows 95/NT, 386DOS and OS/2 EMX."
Guest [Entry]

"I wrote a small application to allow you to do a Google search via CLI, it is actually very simple and currently only supports Web search, Images search and News search.

Codename: Gisele

$ php gisele.phar web -m 5 ""stackoverflow""
1) Stack Overflow - http://stackoverflow.com/
2) Ask Question - http://stackoverflow.com/users/login
3) Stack overflow - Wikipedia, the free encyclopedia - http://en.wikipediadotorg/wiki/Stack_overflow
4) Blog Stack Exchange - http://blog.stackexchange.com/
5) StackOverflow - IT Conversations - The Conversations Network - http://itc.conversationsnetworkdotorg/series/stackoverflow.html"
Guest [Entry]

"You can use w3m - a text based browser. You can open any website with it on terminal. In short you can have google in your terminal and search from there. If you are interested check this link.

To install w3m:

sudo apt-get install w3m"