« NewsExtractor/SiteSpecificExtractor/ChinaTimes.pm
↑ Summary
NewsExtractor/SiteSpecificExtractor/www_upmedia_mg.pm »
| 1 | package NewsExtractor::SiteSpecificExtractor::news_tvbs_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::GenericExtractor'; | |
| 5 | |||
| 6 | 1 | ▶ | use Importer 'NewsExtractor::TextUtil' => 'normalize_whitespace'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 0 | ▶ | sub journalist { |
|
Subroutine
journalist: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 9 | 0 | my ($self) = @_; | |
| 10 | 0 | my $el = $self->dom->at("div.title h4.font_color5"); | |
| 11 | 0 | my $txt = $el->all_text; | |
| 12 | 0 | return normalize_whitespace($txt); | |
| 13 | } | ||
| 14 | |||
| 15 | 1 | 1; | |