corpx has asked for the wisdom of the Perl Monks concerning the following question:
However, the returning string has the <body> tags in it. How could I get the contents inside the <body> tags using HTML::Tree? I realize that regex is a possibility, but I was told that parsing html using regex was not a good idea.$tree = HTML::Tree->new(); $tree->parse($child_page); $body = $tree->look_down( '_tag' , 'body' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How would I extract body from an html page
by ikegami (Patriarch) on Jul 21, 2009 at 21:30 UTC | |
|
Re: How would I extract body from an html page
by wfsp (Abbot) on Jul 22, 2009 at 06:56 UTC | |
by corpx (Acolyte) on Jul 25, 2009 at 19:34 UTC |