P
Paul
Hi !
I hope someone can help.
I want to extract data from a table with 2 columns.
A sample of the table can be generated with:-
"http://moneycentral.msn.com/investo...Q=1&CFA=1&CFQ=1&TYS=1&ITT=1&ITP=1&Type=Equity"
(Sorry about the long URL )
What I want is the field from the top table Labelled - "Tot. Shares Out."
My Current Code is :-
#!/usr/bin/perl -w
use strict;
use HTML::TableExtract;
my $inFile = "/home/mas/development/URLTemp.tmp";
my $te = HTML::TableExtract->new( headers => [ 'Fundamental Data', '*' ]);
$te->parse_file( $inFile );
foreach my $ts ( $te->table_states ) {
foreach my $row ( $ts->rows ) {
print join( ",", @$row, "," ), "\n";
}
}
But this seems to get the table lower down the page. This wouldn't be so
bad as it has the value I need repeated but - "How do I get an
un-labelled column ????"
Any help would be appreciated.
Paul
I hope someone can help.
I want to extract data from a table with 2 columns.
A sample of the table can be generated with:-
"http://moneycentral.msn.com/investo...Q=1&CFA=1&CFQ=1&TYS=1&ITT=1&ITP=1&Type=Equity"
(Sorry about the long URL )
What I want is the field from the top table Labelled - "Tot. Shares Out."
My Current Code is :-
#!/usr/bin/perl -w
use strict;
use HTML::TableExtract;
my $inFile = "/home/mas/development/URLTemp.tmp";
my $te = HTML::TableExtract->new( headers => [ 'Fundamental Data', '*' ]);
$te->parse_file( $inFile );
foreach my $ts ( $te->table_states ) {
foreach my $row ( $ts->rows ) {
print join( ",", @$row, "," ), "\n";
}
}
But this seems to get the table lower down the page. This wouldn't be so
bad as it has the value I need repeated but - "How do I get an
un-labelled column ????"
Any help would be appreciated.
Paul