line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
use utf8; |
2
|
1
|
|
|
1
|
|
7
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
3
|
1
|
|
|
1
|
|
26
|
extends 'NewsExtractor::GenericExtractor'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
18
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use Importer 'NewsExtractor::TextUtil' => qw(u normalize_whitespace); |
6
|
1
|
|
|
1
|
|
270
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
7
|
|
|
|
|
|
|
my ($self) = @_; |
8
|
|
|
|
|
|
|
my $el = $self->dom->at('div.toolBar > span.datetime') or return; |
9
|
0
|
|
|
0
|
0
|
|
|
10
|
0
|
0
|
|
|
|
|
my @t = split /[^0-9]+/, normalize_whitespace($el->all_text); |
11
|
|
|
|
|
|
|
return u( |
12
|
0
|
|
|
|
|
|
sprintf( |
13
|
0
|
|
|
|
|
|
'%04d-%02d-%02dT%02d:%02d:%02d+08:00', |
14
|
|
|
|
|
|
|
$t[0], $t[1], $t[2], $t[3], $t[4], |
15
|
|
|
|
|
|
|
0 |
16
|
|
|
|
|
|
|
) |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |