Permalink
Browse files

Analyze Los Angeles Times

Summary:
Extract author from itemprop="author" semantic field.

Date is already extracted correctly from metadata.

This template will be followed by {{Publicité forcée}}.

Test Plan: Test URL: http://www.latimes.com/business/la-fi-trump-manufacturing-20161114-story.html

Reviewers: dereckson

Differential Revision: https://devcentral.nasqueron.org/D725
  • Loading branch information...
dereckson committed Nov 16, 2016
1 parent 9d5f382 commit 88fdc028abbe12f1dfe9c4117ebd5386fc886115
Showing with 19 additions and 0 deletions.
  1. +1 −0 pages/index.dat
  2. +18 −0 pages/losangelestimes.php
@@ -7,6 +7,7 @@ http://www.footofeminin.fr/ FootOFeminin
http://www.formula1.com/ Formula1
http://www.jstor.org/ JSTOR
http://www.lalibre.be/ LaLibreBelgique
http://www.latimes.com/ LosAngelesTimes
http://www.lefigaro.fr/ LeFigaro
http://www.lemonde.fr/ LeMonde
http://www.leparisien.fr/ LeParisien
@@ -0,0 +1,18 @@
<?php
/**
* Represents a page from the http://www.latimes.com/ site.
*/
class LosAngelesTimesPage extends Page {
/**
* Analyses the page and extracts metadata
*/
function analyse () {
parent::analyse();
$this->site = '[[Los Angeles Times]]';
$this->antiAdBlocker = true;
$this->author = self::between('<span itemprop="author">', '</span');
}
}

0 comments on commit 88fdc02

Please sign in to comment.