I try to use Perl
Mojo::UserAgent
to crawle a website, but the server checking the browser's Javascript support capability. It is possible to say / lie my client support Javascript?
Now I have only this code:
use Mojo::DOM;
use Mojo::UserAgent;
my $ua = Mojo::UserAgent->new;
$ua = $ua->transactor(Mojo::UserAgent::Transactor->new);
$ua->transactor->name('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0');
my $tx = $ua->post("http://..." => form => {
"login_username" => "...",
"login_password" => "..."
});
It is possible to do? If not possible, is there exists any other perl-based user-agent what can do this?