Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3765566
D739.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1003 B
Referenced Files
None
Subscribers
None
D739.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 13:00 (18 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258060
Default Alt Text
D739.diff (1003 B)
Attached To
Mode
D739: Analyze Les Echos
Attached
Detach File
Event Timeline
Log In to Comment