Jean Tavernier > HTML-Content-Extractor > HTML::Content::ContentExtractor

Download:
HTML-Content-Extractor-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Module Version: 0.01   Source  

NAME ^

HTML::Content::ContentExtractor - Perl module for extracting content from HTML documents.

SYNOPSIS ^

  use HTML::WordTagRatio::WeightedRatio;
  use HTML::Content::HTMLTokenizer;
  use HTML::Content::ContentExtractor;
  
  my $tokenizer = new HTML::Content::HTMLTokenizer('TAG','WORD');
  
  my $ranker = new HTML::WordTagRatio::WeightedRatio();
  
  my $extractor = new HTML::Content::ContentExtractor($tokenizer,$ranker,"index.html","index.extr");
  
  $extractor->Extract();

DESCRIPTION ^

HTML::Content::ContentExtractor attempts to extract the content from HTML documents. It attempts to remove tags, scripts and boilerplate text from the documents by trying to find the region of the HTML document that has the maximum ratio of words to tags.

Methods

AUTHOR ^

Jean Tavernier (jj.tavernier@gmail.com)

COPYRIGHT ^

Copyright 2005 Jean Tavernier. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

ContentExtractorDriver.pl (1).