Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11708357
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/pages/index.dat b/pages/index.dat
index f092204..9c14826 100644
--- a/pages/index.dat
+++ b/pages/index.dat
@@ -1,7 +1,8 @@
http://www.erudit.org/ Erudit
http://www.lalibre.be/ LaLibreBelgique
http://www.lesoir.be/ LeSoir
http://archives.lesoir.be/ LeSoir
http://www.rue89.com/ Rue89
http://www.tandfonline.com TaylorAndFrancis
http://www.lemonde.fr/ LeMonde
+http://www.lefigaro.fr/ LeFigaro
diff --git a/pages/lefigaro.php b/pages/lefigaro.php
new file mode 100644
index 0000000..dfd7891
--- /dev/null
+++ b/pages/lefigaro.php
@@ -0,0 +1,31 @@
+<?php
+
+class LeFigaroPage extends Page {
+ function analyse () {
+ parent::analyse();
+
+ //Hardcoded known info
+ $this->site = "Le Figaro";
+ $this->skipYMD = true;
+ $this->issn = '0182-5852';
+
+ //Gets date
+ //e.g. http://www.lefigaro.fr/actualite-france/2013/05/24/01016-20130524ARTFIG00438-frigide-barjot-ne-pense-pas-manifester-dimanche.php
+ $pos = strpos($this->url, "/20") + 1;
+ $yyyy = substr($this->url, $pos, 4);
+ $mm = substr($this->url, $pos + 5, 2);
+ $dd = substr($this->url, $pos + 8, 2);
+ $this->unixtime = mktime(0, 0, 0, $mm, $dd, $yyyy);
+ $this->date = strftime(LONG_DATE_FORMAT, $this->unixtime);
+
+ //Gets author
+ //e.g. <span itemprop="author" class="auteur txt12_120">Stéphanie Le Bars</span>
+ //e.g. <a itemprop="name" href="#auteur" class="fig-anchor fig-picto-journaliste-haut">Stéphane Kovacs</a>
+ //TODO: ensure no article has more than one author
+ $author = self::between('itemprop="name"', '</');
+ $pos = strpos($author, '">') + 2;
+ $this->author = substr($author, $pos);
+ }
+}
+
+?>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Sep 15, 05:46 (6 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2983789
Default Alt Text
(1 KB)
Attached To
Mode
rSTG Source templates generator
Attached
Detach File
Event Timeline
Log In to Comment