I´m trying to get the information within the item-contents divisions of the webpage and i would like my script to wait and read any new item-content divisions appearing in the webpage. Any suggestions?
use WWW::Mechanize::Firefox;
my $mech = WWW::Mechanize::Firefox->new();
$mech->get('https://openbook.etoro.com/Dellos/overview/');
my @text = $mech->selector('.item-content');
for my $p (0..$#text) {
my $normal=$text[$p]->{innerHTML};
print $normal;
}
exit;