Page MenuHomeDevCentral

D739.id1854.diff
No OneTemporary

D739.id1854.diff

diff --git a/pages/index.dat b/pages/index.dat
--- a/pages/index.dat
+++ b/pages/index.dat
@@ -17,6 +17,7 @@
http://www.lefigaro.fr/ LeFigaro
http://www.lemonde.fr/ LeMonde
http://www.leparisien.fr/ LeParisien
+http://www.lesechos.fr/ LesEchos
http://www.lesoir.be/ LeSoir
http://www.liberation.fr/ Liberation
http://www.nytimes.com/ NewYorkTimes
diff --git a/pages/lesechos.php b/pages/lesechos.php
new file mode 100644
--- /dev/null
+++ b/pages/lesechos.php
@@ -0,0 +1,22 @@
+<?php
+
+/**
+ * Represents a page from the http://www.lesechos.fr/ site.
+ */
+class LesEchosPage extends Page {
+ /**
+ * Analyses the page and extracts metadata
+ */
+ function analyse () {
+ parent::analyse();
+
+ // From content
+ $this->author = self::between('<span itemprop="name">', '</span>');
+
+ // From metatags
+ $this->dateFromDateParse($this->meta_tags['article:published_time']);
+
+ // Static
+ $this->site = "[[Les Échos]]";
+ }
+}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 02:40 (13 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2256016
Default Alt Text
D739.id1854.diff (968 B)

Event Timeline