NewsExtractor - download and extract news articles from Internet.
my ($error, $article) = NewsExtractor->new( url => $url )->download->parse; die $error if $error; # $article is an instance of NewsExtractor::Article say "Headline: " . $article->headline; say "When: " . ($article->dateline // "(unknown)"); say "By: " . ($article->journalist // "(unknown)"); say "\n" . $article->content_text;
NewsExtractor::Article
Kang-min Liu <gugod@gugod.org>
To the extent possible under law, Kang-min Liu has waived all copyright and related or neighboring rights to NewsExtractor. This work is published from: Taiwan.
https://creativecommons.org/publicdomain/zero/1.0/
To install NewsExtractor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NewsExtractor
CPAN shell
perl -MCPAN -e shell install NewsExtractor
For more information on module installation, please visit the detailed CPAN module installation guide.