juanpablog has asked for the wisdom of the Perl Monks concerning the following question:
This code returns as in the page I choose UniProtKB from the drop down menu on the top right and then directly go to the end of the page, inputing nothing to anywhere, and press submituse strict; use WWW::Mechanize; my $url = "http://us.expasy.org/tools/protscale.ht… my $sequence = "GSHMLEDPVVLQRRDWENPGVTQLNRLAA"; my $outfile = "out.htm"; my $mech = WWW::Mechanize->new(); $mech->get($url); $mech->form_number(3); $mech->field(query => "$sequence"); $mech->click(); my $output_page = $mech->content(); open(OUTFILE, ">$outfile"); print OUTFILE "$output_page"; close(OUTFILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize problem
by roboticus (Chancellor) on Aug 26, 2010 at 13:14 UTC | |
by juanpablog (Initiate) on Aug 26, 2010 at 13:22 UTC | |
|
Re: WWW::Mechanize problem
by moritz (Cardinal) on Aug 26, 2010 at 13:13 UTC | |
by juanpablog (Initiate) on Aug 26, 2010 at 13:20 UTC |