Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^7: HTML Table to MYSQL DB

by choroba (Chancellor)
on Nov 10, 2011 at 10:31 UTC ( #937323=note: print w/replies, xml ) Need Help??

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

You are overcomplicating it. Why all the opening and chunking?
use warnings; use strict; use HTML::TableExtract; my $te = HTML::TableExtract->new(); $te->parse_file('935413.html'); foreach my $ts ($te->tables) { foreach my $row ($te->rows) { print join(',', @$row),"\n"; } }

Replies are listed 'Best First'.
Re^8: HTML Table to MYSQL DB
by Fiddler (Initiate) on Nov 10, 2011 at 13:50 UTC
    I know chroba but, You see i need to create a time-stamp column with some data outside of the html tables. so with each chunk of data, that variable will change depending on the stamp... ( see original table to get an idea of what i'm saying). Chunks are the only thing i can think about to get that info.
      I do not get it. The information is stored outside TABLE, but you chunk the data on TR.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://937323]
[Eily]: someday FF will start posting back messages where you tell to ignore the previous message
[Eily]: and Hilarity Ensues
Eily says, while failing to write a link properly
[Your Mother]: Goodbye Fancy Feast! Hello Friskies!!!
[LanX]: CB sidebar auto-expansion problem
[Eily]: "tail: warning: following standard input indefinitely is ineffective". I can't help but feel that tail is judging me...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-03-27 16:42 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.