| 1 | package NewsExtractor::SiteSpecificExtractor::talk_ltn_com_tw; | ||||||||||
| 2 | 1 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | extends 'NewsExtractor::JSONLDExtractor'; | |||||||||
| 5 | |||||||||||
| 6 | 1 | with 'NewsExtractor::Role::ContentTextExtractor'; | |||||||||
| 7 | |||||||||||
| 8 | 0 | ▶ | sub journalist { | ||||||||
|
Subroutine
journalist: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 9 | 0 | my ($self) = @_; | |||||||||
| 10 | 0 | ▶ | my $el = $self->dom->at('div.writer > a:nth-child(1)') or return; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 0 | return $el->attr('data-desc'); | |||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | 1 | 1; | |||||||||