![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Screen scrapingby stumped (Novice) |
on Dec 28, 2015 at 13:49 UTC ( #1151262=perlquestion: print w/replies, xml ) | Need Help?? |
stumped has asked for the wisdom of the Perl Monks concerning the following question: I am trying to scrape some info from a web site. I can navigate to the page using mechanize, but I am struggling to getting the text from the page. It is contained in div tags eg: <div id="foo">bar: 19.00</div>What I want to do is extract the text "bar: 19.00". I am looking for is a way to point to the div id 'foo' and then extract the contents to the next div close tag. I would be grateful for any pointers. Thanks
Back to
Seekers of Perl Wisdom
|
|