HTML::TableParser

HTML::TableParser is Perl module to extract data from an HTML table.
Download

HTML::TableParser Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Diab Jerius
  • Publisher web site:
  • http://search.cpan.org/~djerius/

HTML::TableParser Tags


HTML::TableParser Description

HTML::TableParser is Perl module to extract data from an HTML table. HTML::TableParser is Perl module to extract data from an HTML table.SYNOPSIS use HTML::TableParser; @reqs = ( { id => 1.1, # id for embedded table hdr => &header, # function callback row => &row, # function callback start => &start, # function callback end => &end, # function callback udata => { Snack => 'Food' }, # arbitrary user data }, { id => 1, # table id cols => , # column name matches obj => $obj, # method callbacks }, ); # create parser object $p = HTML::TableParser->new( @reqs, { Decode => 1, Trim => 1, Chomp => 1 } ); $p->parse_file( 'foo.html' ); # function callbacks sub start { my ( $id, $line, $udata ) = @_; #... } sub end { my ( $id, $line, $udata ) = @_; #... } sub header { my ( $id, $line, $cols, $udata ) = @_; #... } sub row { my ( $id, $line, $cols, $udata ) = @_; #... } Requirements: · Perl


HTML::TableParser Related Software