Searching a site with google

BoBB plug-discuss@lists.plug.phoenix.az.us
Thu, 31 Oct 2002 15:35:06 -0700


The second example was one that worked(as taken from www.google.com/linux) that searched that search engine. I got the options from the html source of it.

On 31 Oct 2002 08:09:55 -0700
"Ted Gould" <ted@gould.cx> wrote:

   > I haven't done this before, but from the example I think you have this
   > backwards.
   > 
   > > <form ACTION="http://www.google.com/linux">
   > 
   > I think that this you want to leave at: http://www.google.com/custom. 
   > This the CGI that the data is passed to.  I'm betting that there isn't
   > more than one of these.
   > 
   > > <input TYPE="hidden" NAME="site" VALUE="search">
   > > <input TYPE="hidden" NAME="restrict" VALUE="linux">
   > > <input TYPE="hidden" NAME="hl" VALUE="en">
   > > <input TYPE="hidden" NAME="num" VALUE="50">
   > > <input TYPE="hidden" NAME="lr" VALUE="lang_en">
   > > <input TYPE="hidden" NAME="ie" VALUE="ISO-8859-1">
   > > <input TYPE="hidden" NAME="safe" VALUE="off">
   > 
   > You left off the DOMAINS input from the previous example:
   > 
   > <INPUT TYPE="HIDDEN" NAME="DOMAINS" VALUE="www.gentoo.org">
   > 
   > I'm think this is where you would set the scope of the search.  So if
   > you wanted it to search linux.com you would make the value like this:
   > 
   > <INPUT TYPE="HIDDEN" NAME="DOMAINS" VALUE="linux.com">
   > 
   > Because it's plural I imagine there is some way to list the values in
   > this field.  Probably commas or semicolons.
   > 
   > > <input TYPE=text NAME="q" SIZE="16" MAXLENGTH="2048" VALUE="">
   > > <input TYPE=submit NAME=btnG VALUE="Go"> 
   > > </form>
   > 
   > 		Have fun,
   > 			Ted
   > 


 -- 
 BoBB