line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
use utf8; |
2
|
1
|
|
|
1
|
|
7
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
3
|
1
|
|
|
1
|
|
26
|
extends 'NewsExtractor::GenericExtractor'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use Importer 'NewsExtractor::TextUtil' => 'reformat_dateline'; |
6
|
1
|
|
|
1
|
|
267
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
my ($self) = @_; |
8
|
|
|
|
|
|
|
my $el = $self->dom->at("span.f12_15a_g2"); |
9
|
0
|
|
|
0
|
0
|
|
return reformat_dateline( $el->text(), '+08:00' ); |
10
|
0
|
|
|
|
|
|
} |
11
|
0
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my ($self) = @_; |
13
|
|
|
|
|
|
|
my $txt = $self->content_text; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
0
|
0
|
|
my ($x) = $txt =~ m{[〔﹝【]記者 \s* ([ \p{Letter}]+?) \s* (?:[//]\p{Letter}+)?報導[﹞〕】]}x; |
16
|
0
|
|
|
|
|
|
return $x; |
17
|
|
|
|
|
|
|
} |
18
|
0
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
1; |