Page 1 of 1
how to submit google page using snoopy
Posted: Wed Apr 09, 2008 11:58 pm
by seco
Hi
how to submit google page and get the result page using snoopy class?
thanks in advance.
Re: how to submit google page using snoopy
Posted: Thu Apr 10, 2008 2:08 am
by Benjamin
Have you experimented or written any code?
Re: how to submit google page using snoopy
Posted: Thu Apr 10, 2008 2:35 am
by seco
yea
Code: Select all
<?php
require_once("snoopy.class.php");
$s=new Snoopy();
$form=array("q"=>"devnetwork");
$s->submit("http://www.google.com",$form);
echo $s->results;
?>
this code don't work because of the form vars sent i don't know what it should be
Re: how to submit google page using snoopy
Posted: Thu Apr 10, 2008 2:37 am
by Benjamin
I would have to see the snoopy class or read the documents in order to answer your question. Is there any reason you are not able to do this?
Re: how to submit google page using snoopy
Posted: Thu Apr 10, 2008 5:40 am
by seco
thanks for reply
there no documentation just a little notes
just i want to know how the submit function accepts the form vars
in case of google site what is the form vars i show send?
thats all i need to know
thanks in advance.
Re: how to submit google page using snoopy
Posted: Thu Apr 10, 2008 10:53 am
by Mordred
Code: Select all
$s->submit("http://www.google.com[b]/search[/b]",$form);