pombreda / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

I #556

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
*** What service (Calendar, Docs, Picasa) should be enhanced?

New service for Search

*** What is the enhancement?

Search results are given in a formatted format command line output. The search 
query can be taken from command line arguments or other means, same as the 
other services.

Similarly to this shell script (currently tested and works under zsh and bash) 
excepts also shows short descriptions with a flag to add colors similar to that 
of what is seen through a web browser. It could be an improvement on the 
attached file with showing descriptions and the mentioned color support.

Thanks.

P.S. Implementable in Bash, and common GNU Linux command line utilties found on 
just about every standard installation of Linux Distros:

function google { Q="$@"; GOOG_URL='https://www.google.de/search?tbs=li:1&q='; 
AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}${Q//\ /+}" 
| grep -oP '\/url\?q=.+?&amp' | sed 's|/url?q=||; s|&amp||'); echo -e 
"${stream//\%/\x}"; }

google google-cl

Original issue reported on code.google.com by TuxPengu...@gmail.com on 2 Apr 2014 at 11:10

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry about the topic, but I see no way to edit that once submitted. Content is 
good.

Original comment by TuxPengu...@gmail.com on 2 Apr 2014 at 11:12