Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance. Below is the Perl code.<th class=" Header" scope="col">Account Number</th> <th class="r Header" scope="col">Fraud Transfer<br>Date</th> <th class="r Header" scope="col">Balance</th> <th class="r Header" scope="col">No. of Disputes<br>After Transfer</th +> <th class="r Header" scope="col">Disputed Dollars After<br>Transfer</t +h>
#!/usr/bin/perl use HTML::TableExtract; $te = HTML::TableExtract->new( headers => [qw('Account umber' 'Fr +aud Transfer' 'Date' 'Balance' 'No. of Disputes After Transfer' 'Disputed Dollars After Transfer')] ); $html_string = 'ops_tran_tracking.html'; $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: extract data using HTML::TableExtract
by pg (Canon) on Oct 09, 2005 at 05:38 UTC | |
by Anonymous Monk on Oct 09, 2005 at 15:44 UTC | |
|
Re: extract data using HTML::TableExtract
by johnnywang (Priest) on Oct 09, 2005 at 06:40 UTC | |
by cyclist38 (Hermit) on Oct 09, 2005 at 09:20 UTC | |
|
Re: extract data using HTML::TableExtract
by EvanCarroll (Chaplain) on Oct 09, 2005 at 07:30 UTC | |
|
Re: extract data using HTML::TableExtract
by polettix (Vicar) on Oct 09, 2005 at 14:50 UTC | |
by Anonymous Monk on Oct 09, 2005 at 15:49 UTC | |
by parv (Parson) on Oct 10, 2005 at 00:56 UTC | |
by Anonymous Monk on Oct 10, 2005 at 13:47 UTC |