Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Question on extracting HTML tables with HTML::TableExtract

by tangent (Priest)
on Feb 26, 2012 at 19:46 UTC ( #956300=note: print w/replies, xml ) Need Help??

in reply to Question on extracting HTML tables with HTML::TableExtract

Once you have the table, you can build a tree and then call $table_tree->as_HTML:
use HTML::TableExtract qw(tree); my $te = HTML::TableExtract->new(); $te->parse($string_of_html); my $table = $te->first_table_found; my $table_tree = $table->tree; my $table_html = $table_tree->as_HTML; print $table_html;
You can also call tables() to get a list of all the tables and then put a loop around the above.

You need to have the optional HTML::TreeBuilder and HTML::ElementTable installed for this to work.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://956300]
[GotToBTru]: I suppose the actual details about what is necessary to actually do something is kept fuzzy deliberately
[LanX]: the interview was with the guy who designed the process
[LanX]: in the 70s
[GotToBTru]: so the font on the card is probably NOT Comic Sans
[GotToBTru]: that's a relief
[LanX]: Bruce_G._Blair
[choroba]: as in embossed card?
[Discipulus]: ironically from his pubblications: "Can Disarmament Work?"
[erix]: when is the bird-brain's inauguration tweet?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-01-20 12:57 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (174 votes). Check out past polls.