- 论坛徽章:
- 0
|
- #!/usr/bin/perl -w
- use strict;
- use LWP::Simple;
- use HTML::TableExtract;
- my $html=get("http://rammb.cira.colostate.edu/products/tc_realtime/archive_strmfcst.asp?storm_identifier=WP022013");
- my $te = HTML::TableExtract->new();
- print "start.\n";
- $te->parse($html);
- my $table = $te->first_table_found;
- foreach my $ts ($te->tables) {
-
- print "start table.\n";
- print "Table (", join(',', $ts->coords), "):\n";
- foreach my $row ($ts->rows) {
- print "start row.\n";
- print join(',', @$row), "\n";
- }
- }
复制代码 回复 1# shixinqianli
|
|