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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Screen scraping
by Corion (Patriarch) on Dec 28, 2015 at 14:48 UTC | |
Re: Screen scraping
by ambrus (Abbot) on Dec 28, 2015 at 17:03 UTC | |
Re: Screen scraping (web scraping!)
by Discipulus (Canon) on Dec 28, 2015 at 19:54 UTC | |
Re: Screen scraping
by Anonymous Monk on Dec 28, 2015 at 15:40 UTC | |
by CountZero (Bishop) on Dec 28, 2015 at 16:23 UTC |
Back to
Seekers of Perl Wisdom