Home > Archive > PERL Beginners > January 2007 > Perl X file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Tatiana Lloret Iglesias 2007-01-30, 6:59 pm |
| Hi all,
i've got a perl script which does the following:
1. gets html page with SEARCH FORM
2. Introduce QUERY content and press Search button
3. Several pages are obtained
4. Process the first page and press NEXT PAGE BUTTON and continue processing
next pages
Problem:
When Query contains only one word it works. More than one word (e.g.
"colorectal cancer" ) it fails in point 4 although the first page obtained
with the first 50 results seems correct:
Html code for 1 word ( I press NextList2 button):
<form name="srchForm" action="/netacgi/nph-Parser" method="GET"
onsubmit="unesc()">
<INPUT TYPE="HIDDEN" NAME="u" VALUE="/netahtml/PTO/search-adv.htm">
<INPUT TYPE="HIDDEN" NAME="OS" VALUE="cancer">
<INPUT TYPE="HIDDEN" NAME="RS" VALUE="cancer">
<INPUT TYPE="HIDDEN" NAME="Query" VALUE="cancer">
<INPUT TYPE="HIDDEN" NAME="Srch1" VALUE="cancer">
<INPUT TYPE=submit NAME=NextList2 VALUE="Next 50 Hits"><BR><BR></FORM>
Html code for 2 words ( I press NextList2 button):
<form name="srchForm" action="/netacgi/nph-Parser" method="GET"
onsubmit="unesc()">
<INPUT TYPE="HIDDEN" NAME="u" VALUE="/netahtml/PTO/search-adv.htm">
<INPUT TYPE="HIDDEN" NAME="OS" VALUE=""colorectal cancer"">
<INPUT TYPE="HIDDEN" NAME="RS" VALUE=""colorectal cancer"">
<INPUT TYPE="HIDDEN" NAME="Query" VALUE=""colorectal cancer"">
<INPUT TYPE="HIDDEN" NAME="Srch1" VALUE="%22colorectal cancer%22">
<INPUT TYPE=submit NAME=NextList2 VALUE="Next 50 Hits"><BR><BR></FORM>
I get the following error:
Error #2406LINEA=== Error: Process terminated abnormally. Document may be
truncated.
But if I do it manually from the website it works
Any idea?? I'm completely lost!
Thanks!
T.
| |
| nobull67@gmail.com 2007-01-31, 6:59 pm |
| On Jan 30, 7:21 pm, tllor...@gmail.com ("Tatiana Lloret Iglesias")
wrote:
> i've got a perl script
Are you sure? There's no Perl in your question that I can see.
> I'm completely lost!
I think you may be.
|
|
|
|
|