jdlev has asked for the wisdom of the Perl Monks concerning the following question:
use HTML::TableExtract; $te = HTML::TableExtract->new( headers => [qw(Date Price Cost)] ); $te->parse($html_string); # Examine all matching tables foreach $ts ($te->tables) { print "Table (", join(',', $ts->coords), "):\n"; foreach $row ($ts->rows) { print join(',', @$row), "\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::TableExtract - Easy Way To Tell If It Found A Table?
by hdb (Monsignor) on Sep 25, 2013 at 18:35 UTC | |
|
Re: HTML::TableExtract - Easy Way To Tell If It Found A Table?
by kcott (Archbishop) on Sep 26, 2013 at 00:00 UTC | |
by jdlev (Scribe) on Sep 26, 2013 at 18:29 UTC | |
by kcott (Archbishop) on Sep 26, 2013 at 21:27 UTC |