Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: HTML Table to MYSQL DB

by choroba (Chancellor)
on Nov 02, 2011 at 15:27 UTC ( #935426=note: print w/ replies, xml ) Need Help??


in reply to Re^2: HTML Table to MYSQL DB
in thread HTML Table to MYSQL DB

Something like this:

use warnings; use strict; use HTML::TableExtract; use LWP::Simple; my $T = HTML::TableExtract->new(); my $table = $T->parse(get( 'http://.......')) ->first_table_found; my @rows = $table->rows; for my $row (@rows) { # Process rows... }


Comment on Re^3: HTML Table to MYSQL DB
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2016-02-12 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (415 votes), past polls