These are the modules I have installed.
use WWW::Mechanize;
use XML::Simple;
use LWP::Simple;
use Data::Dumper;
use Web::Scraper;
#use HTML::Grabber;
I am trying to get all links that end in ‘.com‘ up to an html tag: ‘<div class="nogo_class">Proceed No More</div>‘ creating an array from the results.
I have looked at various examples I found here and in documentation but, nothing that does this.
Nothing I can wrap my noob mind around anyhow.
So, using the modules I have installed, how can I get all links that end in ‘.com‘ up to that stopping point: ‘<div class="nogo_class">Proceed No More</div>‘ into an array?
So, later down I can get the links out with a loop or whatever.
eg $somearray[$counter];
I am really inexperienced and hope I asked the question properly. Verbose explanations in any examples will help me learn this.
Thanks for you help.
P.S. the ‘nogo_class’ is used multiple times in the page but, the ‘Proceed No More’ text only appears once in the page. ALSO, I am running Perl v5.8.8 and Grabber needs v5.10.0 minimum.
Use HTML::TokeParser::Simple to parse the document. Stop parsing
atags when you find the text “Proceed No More” in adiv.nogo.