View Single Post
Old Sep 20th, 2004, 3:14 AM   #1
erebus
Programmer
 
erebus's Avatar
 
Join Date: Aug 2004
Location: /dev/null
Posts: 65
Rep Power: 5 erebus is on a distinguished road
Send a message via AIM to erebus
I have been looking into how one can automated google searches without the use of the API or a google developer's key. Thus far, after some research on ftp and http, I have come to the conclusion that(with the help of some IRC buddies) have figured out that you must make a connectoin to google via something like telnet on port 80 and use get to take advantage of the /search?q that google uses for every search. One can invoke such directly from the browser through "elinks www.google.com/search?q=blah", but I want something I could store in a file or hide in the background. Also, the below method will dump html. If someone can figure out a way to format this for readability or knows another less cumbersome way of doing this, please tell me please.
echo -e "GET /search?q="search"+"string" HTTP/1.1 \n" | nc www.google.com 80 > google_results
__________________
<span style='font-size:14pt;line-height:100%'><span style='color:red'>&quot;Political power grows out of the barrel of a gun&quot; - Mao Tse-Tung</span></span>
erebus is offline   Reply With Quote