in reply to Formating a HTML document to show certain text.
Using HTML::Parser is good, but it does take a while to learn. There are examples in this directory: http://cpansearch.perl.org/src/GAAS/HTML-Parser-3.68/eg/.
The htext example will show you how to pull all the text out of an html file.
Looking at the html:
... <div class="heading">Detailed Overview</div> <p>With The Elevation Group....</p> <p>You will get an understanding....</p> <div class="heading">Reputation</div> <p><a href="http://www.imreportcard.com/people/mike-dillard">Mike Dill +ard</a> has built his...</p> <div class="heading">Domain "Whois"</div> <p>The Whois information for a....</p> ...
It looks like you just need to look for div tags that contain the class="heading" followed by paragraphs. Of course, some of those paragraphs contain additional formatting, but that should be easy for you come up with logic handle those.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Formating a HTML document to show certain text.
by The Elite Noob (Sexton) on Mar 26, 2011 at 23:27 UTC |