3 ms·
The Google Command Line Tool is interesting but it's missing the search (is that intentional from Google? I don't know). I made a quick and dirty one liner repl
by adulau 16y ago
The Google Command Line Tool is interesting but it's missing the search (is that intentional from Google? I don't know). I made a quick and dirty one liner replace foo by your search query:
curl -s "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&start=0&rsz=large&q=foo" | sed -e 's/[{}]/''/g' | awk '{n=split($0,s,","); for (i=1; i<=n; i++) print s[i]}' | grep -E "("url"|"titleNoFormatting")" | sed -e s/\"//g | cut -d: -f2-
My notes about : http://www.foo.be/cgi-bin/wiki.pl/2010-06-19_Searching_Google_From_The_Command_Line http://www.foo.be/cgi-bin/wiki.pl/2010-06-19_Searching_Googl...