I have to paste my sequences into the box in http://www.expasy.org/tools/protscale.html and I have to save the result page. So I wrote this perl code which is always retrieve the same page when I change the number in the form_number. How can I fix it? When checking the site the input box is the third form, first one is on right top. Also i didn't write in this code but I have to select one of the preferences below the input box, with dots near them. Also I have to check yes for "Do you want to normalize the scale from 0 to 1?" at the bottom. Thnx in advance
use 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);
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 submit