Hi Monks, Need your Help!
I am using Mechanize to automate this URL https://sjobs.brassring.com/TGWebHost/searchresults.aspx?partnerid=25510&siteid=5136. but I am not getting the full contents( jobs available there)of that page while saving. I think some cookie issue or something is there, but i cant find(figure) it out. Pls suggest Monks. Looking for your help! Thanks in advance Monks.
Matt™
Pls find the code below,
use strict;
use WWW::Mechanize;
my $search_url = "https://sjobs.brassring.com/TGWebHost/searchresults.
+aspx?partnerid=25510&siteid=5136";
my $mech = WWW::Mechanize->new( );
print "\nChecking: $search_url ...\n";
eval{
$mech->agent_alias('Mac Safari');
$mech->get($search_url);
};
if ($@) {
print "Error connecting to URL $search_url.\n($@)\n";
exit(1);
}
my $filename = 'OUTPUT.html';
$mech->save_content( $filename );
die;