Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Need help extracting data from web page

by dominix (Deacon)
on Jan 15, 2004 at 10:29 UTC ( [id://321514]=note: print w/replies, xml ) Need Help??


in reply to Need help extracting data from web page

we'll don't do your homework but we can give you tracks to get by.
my track : use TableExtract
use HTML::TableExtract; my @content = (<>); # give html file on command line my $content = join( //, @content ); for $count ( 1 .. 8 ) { $te = new HTML::TableExtract( depth => 1, count => $count ); $te->parse($content); # Shorthand...top level rows() method assumes the first table fou +nd # in the document if no arguments are supplied. foreach $row ( $te->rows ) { print join( ',', @$row ); } }
--
dominix

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://321514]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-19 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found