Hacking Google Suggest
Link: Adam Stiles: Hacking Google Suggest.
At its simplest, Google Suggest is javascript code that looks at what you are typing in the Google search box. When you press a key, GS phones home and passes the current contents of the search box. The server returns some suggestions are then displayed to the user.
Adam Stiles hacked Google Suggest javascript code. It uses onkeydown event to capture users input, then passes the query to the Google web server. After gettint the search results back, it shows the suggestions with dynamic HTML. Adam also has released his excellent sample PHP code to retrieve suggestion information via Google web server.
Now I’ve integrated Adam’s code into Perl, and released a new Perl module WebService-Google-Suggest-0.01.tar.gz, which is going on its way to CPAN.