Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am using html table extract to fetch the data as below...
Can you please help to get the rows which are in red background...?
use strict; use LWP::UserAgent; use HTTP::Request; use HTML::TableExtract; my $ua = LWP::UserAgent->new(timeout => 10); my $url = 'http://sdasd.com'; my $request = HTTP::Request->new('GET',$url); my $response = $ua->request($request); if ($response->is_success){ my $te = HTML::TableExtract->new ( headers => [ 'USER NAME','Trans +']); $te->parse($response->content); foreach my $ts ($te->table_states) { foreach my $row ($ts->rows) { if ($row !~ "disabled"){ print @$row; } } } }
GrandFather moved commentary outside code block
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fetch the data with red background...
by ww (Archbishop) on Jul 09, 2009 at 10:31 UTC |