uni_j has asked for the wisdom of the Perl Monks concerning the following question:
use WWW::Mechanize; use HTML::TokeParser; my $mech = WWW::Mechanize->new(); my $stream = HTML::TokeParser->new(\$html); $url = "http://students.yale.edu/oci/search.jsp"; $mech->get($url); $html = $mech->content(); while(my $token = $stream->get_token()){ if($token->[1] eq "options"){ print $stream->get_text."\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize v.s .JSP Web Control
by whakka (Hermit) on Jun 03, 2009 at 18:21 UTC | |
by uni_j (Acolyte) on Jun 03, 2009 at 19:42 UTC | |
|
Re: WWW::Mechanize v.s .JSP Web Control
by perrin (Chancellor) on Jun 03, 2009 at 17:51 UTC | |
|
Re: WWW::Mechanize v.s .JSP Web Control
by Anonymous Monk on Jun 03, 2009 at 17:35 UTC | |
by uni_j (Acolyte) on Jun 03, 2009 at 17:38 UTC | |
by Anonymous Monk on Jun 03, 2009 at 18:27 UTC |