Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Queries on HTML::TableExtract - How to parse from saved html file

by influx (Beadle)
on Aug 08, 2012 at 08:37 UTC ( #986181=note: print w/ replies, xml ) Need Help??


in reply to Queries on HTML::TableExtract - How to parse from saved html file

I don't know much about that module, but if parse_file() isn't very persistent, then perhaps you could slurp the file into a string and continue using the parse() method instead

For larger files you might be better off using File::Slurp or something

use File::Slurp 'read_file'; my $html = "/path/to/file.html"; my $str = read_file($html);

Once you've done that, then you can just parse $str as you normally would a string.


Comment on Re: Queries on HTML::TableExtract - How to parse from saved html file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2015-07-06 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (83 votes), past polls