rashichauhan has asked for the wisdom of the Perl Monks concerning the following question:
plz help me!!use strict; use WWW::Mechanize; use HTTP::Cookies; my $outfile = "out1.htm"; my $url = "http://metexplore.toulouse.inra.fr/metexplore/index.php/201 +1-06-06-14-41- 10/choke-point-reactions"; my $name = "org"; #my $value="Bacillus anthracis(Strain:Ames Ancestor)MicroCyc"; my $value="1"; my $mech = WWW::Mechanize->new(); $mech->cookie_jar(HTTP::Cookies->new()); $mech->get($url); $mech->form_name('form'); $mech->select($name, $value); #$mech->select("select", $select); #$mech->select("$select", 1); $mech->click(); #$mech->follow_link(text => "click here", n => 1); my $output_page = $mech->content(); open(OUTFILE, ">$outfile"); print OUTFILE "$output_page"; close(OUTFILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: question regarding perl mechanize module
by mtmcc (Hermit) on Jul 27, 2013 at 08:25 UTC | |
|
Re: question regarding perl mechanize module
by Anonymous Monk on Jul 27, 2013 at 08:35 UTC | |
by rashichauhan (Novice) on Jul 29, 2013 at 05:24 UTC | |
by Anonymous Monk on Jul 29, 2013 at 09:12 UTC |