diff --git a/pages/index.dat b/pages/index.dat index 38cd706..688f992 100644 --- a/pages/index.dat +++ b/pages/index.dat @@ -1,27 +1,29 @@ http://archives.lesoir.be/ ArchivesLeSoir http://next.liberation.fr/ Liberation http://onlinelibrary.wiley.com/ Wiley http://rue89.nouvelobs.com/ Rue89 http://www.animeland.fr/ AnimeLand http://www.animenewsnetwork.com/ AnimeNewsNetwork http://www.chroniquesautomatiques.com/ LesChroniquesAutomatiques http://www.crunchyroll.com/ CrunchyRoll http://www.erudit.org/ Erudit http://www.footofeminin.fr/ FootOFeminin http://www.formula1.com/ Formula1 http://www.huffingtonpost.fr/ HuffingtonPostFrance http://www.jstor.org/ JSTOR http://www.lalibre.be/ LaLibreBelgique http://www.latimes.com/ LosAngelesTimes http://www.lavenir.net/ LAvenir http://www.lefigaro.fr/ LeFigaro http://www.lemonde.fr/ LeMonde http://www.numerama.com/ Numerama 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 http://www.persee.fr/ Persee http://www.tandfonline.com TaylorAndFrancis +http://www.theguardian.com TheGuardian +https://www.theguardian.com TheGuardian http://www.worldcat.org/ WorldCat diff --git a/pages/theguardian.php b/pages/theguardian.php new file mode 100644 index 0000000..fc6c013 --- /dev/null +++ b/pages/theguardian.php @@ -0,0 +1,23 @@ +<?php + +// Page analysis for www.theguardian.com +class TheGuardianPage extends Page { + + function analyse () { + parent::analyse(); + + // Hardcoded known info + $this->site = "[[The Guardian]]"; + + // Gets date from article:published_time metatag + $this->yyyy = substr($this->meta_tags['article:published_time'], 0, 4); + $this->mm = substr($this->meta_tags['article:published_time'], 4, 2); + $this->dd = ltrim(substr($this->meta_tags['article:published_time'], 8, 2), '0'); + $this->unixtime = mktime(0, 0, 0, $mm, $dd, $yyyy); + + // Gets author from author metatag + // TODO Handle multiple authors + $this->author = $this->meta_tags['author']; + } + +}