Dear all,
I am brand new to php, but learning quickly. I need to be able to go
to website, obtain the form elements, cycle through the form elements,
fetch the links for each page that results from the submission of the
form elements, and then fetch all the content of the pages refered in
the links (its approx 115,000 links). If i understand it right,
Snoopy is the way to go with this. But the problem is, is that we
cannot get snoopy to work (expect for the submit function). I have
gone through all the text files that come with snoopy, and even when
we just cut and paste the example code from the text files, it does
not work. for example, when we pasted the fetchtext function example
code we got the following error:
.............
Notice: Undefined variable: postdata in
c:\inetpub\wwwr oot\gasearch\de v\test files\Snoopy.cl ass.inc on line
1153
Warning: fsockopen(): php_network_get addresses: gethostbyname failed
in c:\inetpub\wwwr oot\gasearch\de v\test files\Snoopy.cl ass.inc on line
1092
Warning: fsockopen(): unable to connect to lnk.ispi.net:80 in
c:\inetpub\wwwr oot\gasearch\de v\test files\Snoopy.cl ass.inc on line
1092
Notice: Uninitialized string offset: 0 in
c:\inetpub\wwwr oot\gasearch\de v\test files\snoopyfet ch.php on line 23
Notice: Uninitialized string offset: 1 in
c:\inetpub\wwwr oot\gasearch\de v\test files\snoopyfet ch.php on line 24
Notice: Uninitialized string offset: 2 in
c:\inetpub\wwwr oot\gasearch\de v\test files\snoopyfet ch.php on line 25
.............
we made absolutely no changes to the code, just a simple cut and
paste. Given the way that snoopy is discussed on various groups, we
get the feeling that this is a really easy class function to use,
which leads us to believe that we are missing some very simple step.
please if anybody can help us out we would be greatful, or better yet,
if anybody has done a task simular to ours at hand, if you could just
post some code as to how you did it....thank you for your time.
toby
I am brand new to php, but learning quickly. I need to be able to go
to website, obtain the form elements, cycle through the form elements,
fetch the links for each page that results from the submission of the
form elements, and then fetch all the content of the pages refered in
the links (its approx 115,000 links). If i understand it right,
Snoopy is the way to go with this. But the problem is, is that we
cannot get snoopy to work (expect for the submit function). I have
gone through all the text files that come with snoopy, and even when
we just cut and paste the example code from the text files, it does
not work. for example, when we pasted the fetchtext function example
code we got the following error:
.............
Notice: Undefined variable: postdata in
c:\inetpub\wwwr oot\gasearch\de v\test files\Snoopy.cl ass.inc on line
1153
Warning: fsockopen(): php_network_get addresses: gethostbyname failed
in c:\inetpub\wwwr oot\gasearch\de v\test files\Snoopy.cl ass.inc on line
1092
Warning: fsockopen(): unable to connect to lnk.ispi.net:80 in
c:\inetpub\wwwr oot\gasearch\de v\test files\Snoopy.cl ass.inc on line
1092
Notice: Uninitialized string offset: 0 in
c:\inetpub\wwwr oot\gasearch\de v\test files\snoopyfet ch.php on line 23
Notice: Uninitialized string offset: 1 in
c:\inetpub\wwwr oot\gasearch\de v\test files\snoopyfet ch.php on line 24
Notice: Uninitialized string offset: 2 in
c:\inetpub\wwwr oot\gasearch\de v\test files\snoopyfet ch.php on line 25
.............
we made absolutely no changes to the code, just a simple cut and
paste. Given the way that snoopy is discussed on various groups, we
get the feeling that this is a really easy class function to use,
which leads us to believe that we are missing some very simple step.
please if anybody can help us out we would be greatful, or better yet,
if anybody has done a task simular to ours at hand, if you could just
post some code as to how you did it....thank you for your time.
toby
Comment