Searching a site with google

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ted Gould
Date:  
Subject: Searching a site with google
--=-jeuymUB9ukDfby3bBsxD
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I haven't done this before, but from the example I think you have this
backwards.

> <form ACTION=3D"http://www.google.com/linux">


I think that this you want to leave at: http://www.google.com/custom.=20
This the CGI that the data is passed to. I'm betting that there isn't
more than one of these.

> <input TYPE=3D"hidden" NAME=3D"site" VALUE=3D"search">
> <input TYPE=3D"hidden" NAME=3D"restrict" VALUE=3D"linux">
> <input TYPE=3D"hidden" NAME=3D"hl" VALUE=3D"en">
> <input TYPE=3D"hidden" NAME=3D"num" VALUE=3D"50">
> <input TYPE=3D"hidden" NAME=3D"lr" VALUE=3D"lang_en">
> <input TYPE=3D"hidden" NAME=3D"ie" VALUE=3D"ISO-8859-1">
> <input TYPE=3D"hidden" NAME=3D"safe" VALUE=3D"off">


You left off the DOMAINS input from the previous example:

<INPUT TYPE=3D"HIDDEN" NAME=3D"DOMAINS" VALUE=3D"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=3D"HIDDEN" NAME=3D"DOMAINS" VALUE=3D"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=3Dtext NAME=3D"q" SIZE=3D"16" MAXLENGTH=3D"2048" VALUE=3D"">
> <input TYPE=3Dsubmit NAME=3DbtnG VALUE=3D"Go">=20
> </form>


        Have fun,
            Ted


--=-jeuymUB9ukDfby3bBsxD
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEABECAAYFAj3BR8IACgkQLE335pRPGp0edwCg7Ro4SiTPVEYV4e/0K8QyzUeX
F5YAn1UkVrbz5uUiRJNaBAX9lPUwerDF
=2fw5
-----END PGP SIGNATURE-----

--=-jeuymUB9ukDfby3bBsxD--