#### use strict; use WWW::Mechanize::PhantomJS; use Data::Dumper; my $mech = WWW::Mechanize::PhantomJS->new( launch_arg => ['ghostdriver/src/main.js' ], ); $mech->get('https://www.racingpost.com/tipping/naps-table/'); sleep 5; my $cont= $mech->xpath('/html/body/div[4]/main/div/div[2]/div/div/div[2]/div/div[1]/div[1]/div[2]', one => 1,synchronize=>1); my $content=$cont->{innerHTML}; print $content;