-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
31 lines (19 loc) · 798 Bytes
/
README
File metadata and controls
31 lines (19 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
NAME
NewsExtractor - download and extract news articles from Internet.
SYNOPSIS
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->article_body;
SEE Also
NewsExtractor::Article
AUTHOR
Kang-min Liu <gugod@gugod.org>
LICENSE
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/