From 894eadbbda6c968d92cc2230a12bbf7a97d84bc7 Mon Sep 17 00:00:00 2001 From: teromene Date: Tue, 3 Nov 2015 22:28:44 +0000 Subject: [PATCH] =?UTF-8?q?Premier=20lot=20de=20bridges=20utilisant=20le?= =?UTF-8?q?=20premier=20syst=C3=A8me.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: teromene --- bridges/ABCTabsBridge.php | 32 ++++++++++--------------- bridges/AcrimedBridge.php | 9 +------ bridges/BastaBridge.php | 23 +++++++++--------- bridges/BlaguesDeMerdeBridge.php | 18 +++++++------- bridges/CADBridge.php | 22 ++++++++--------- bridges/CoinDeskBridge.php | 20 ++++++++-------- bridges/CollegeDeFranceBridge.php | 21 ++++++++-------- bridges/CommonDreamsBridge.php | 22 ++++++++--------- bridges/CopieDoubleBridge.php | 19 ++++++++------- bridges/CourrierInternationalBridge.php | 19 ++++++++------- bridges/DansTonChatBridge.php | 21 ++++++++-------- bridges/DemoBridge.php | 11 --------- bridges/DeveloppezDotComBridge.php | 20 ++++++++-------- bridges/DilbertBridge.php | 19 ++++++++------- bridges/FSBridge.php | 18 ++++++-------- bridges/FootitoBridge.php | 18 +++++++------- bridges/FrandroidBridge.php | 19 +++++++-------- bridges/GizmodoFRBridge.php | 20 ++++++++-------- bridges/GuruMedBridge.php | 17 ++++++------- bridges/KoreusBridge.php | 20 ++++++++-------- bridges/LeJournalDuGeekBridge.php | 20 ++++++++-------- bridges/LeMondeInformatiqueBridge.php | 21 ++++++++-------- bridges/LeMotDuJourBridge.php | 17 +++++++------ bridges/Les400Culs.php | 17 ++++++++----- bridges/LesJoiesDuCodeBridge.php | 18 +++++++------- 25 files changed, 233 insertions(+), 248 deletions(-) diff --git a/bridges/ABCTabsBridge.php b/bridges/ABCTabsBridge.php index f0973b6a..ac0772de 100644 --- a/bridges/ABCTabsBridge.php +++ b/bridges/ABCTabsBridge.php @@ -1,19 +1,18 @@ maintainer = "kranack"; + $this->name = "ABC Tabs Bridge"; + $this->uri = "http://www.abc-tabs.com/"; + $this->description = "Returns 22 newest tabs"; + $this->update = "2014-07-23"; + + } + public function collectData(array $param){ $html = ''; $html = file_get_html('http://www.abc-tabs.com/tablatures/nouveautes.html') or $this->returnError('No results for this query.', 404); @@ -30,13 +29,6 @@ class ABCTabsBridge extends BridgeAbstract{ $this->items[] = $item; } } - public function getName(){ - return 'ABC Tabs Bridge'; - } - - public function getURI(){ - return 'http://www.abc-tabs.com/'; - } public function getCacheDuration(){ return 3600; // 1 hour diff --git a/bridges/AcrimedBridge.php b/bridges/AcrimedBridge.php index d50a0d66..ae573f86 100644 --- a/bridges/AcrimedBridge.php +++ b/bridges/AcrimedBridge.php @@ -1,13 +1,6 @@ maintainer = "qwertygc"; diff --git a/bridges/BastaBridge.php b/bridges/BastaBridge.php index 976240fe..0b84ff39 100644 --- a/bridges/BastaBridge.php +++ b/bridges/BastaBridge.php @@ -1,16 +1,17 @@ maintainer = "qwertygc"; + $this->name = "Bastamag Bridge"; + $this->uri = "http://www.bastamag.net/"; + $this->description = "Returns the newest articles."; + $this->update = "2014-05-25"; + + } + + public function collectData(array $param){ diff --git a/bridges/BlaguesDeMerdeBridge.php b/bridges/BlaguesDeMerdeBridge.php index c7caed6f..2ba230f9 100644 --- a/bridges/BlaguesDeMerdeBridge.php +++ b/bridges/BlaguesDeMerdeBridge.php @@ -1,14 +1,16 @@ maintainer = "superbaillot.net"; + $this->name = "Blagues De Merde"; + $this->uri = "http://www.blaguesdemerde.fr/"; + $this->description = "Blagues De Merde"; + $this->update = "16/10/2013"; + + } + public function collectData(array $param){ $html = file_get_html('http://www.blaguesdemerde.fr/') or $this->returnError('Could not request BDM.', 404); diff --git a/bridges/CADBridge.php b/bridges/CADBridge.php index 8238eaf9..28ef697e 100644 --- a/bridges/CADBridge.php +++ b/bridges/CADBridge.php @@ -1,16 +1,16 @@ maintainer = "nyutag"; + $this->name = "CAD Bridge"; + $this->uri = "http://www.cad-comic.com/"; + $this->description = "Returns the newest articles."; + $this->update = "2015-04-03"; + + } + public function collectData(array $param){ function CADUrl($string) { diff --git a/bridges/CoinDeskBridge.php b/bridges/CoinDeskBridge.php index 6dc5a090..79c30ebd 100644 --- a/bridges/CoinDeskBridge.php +++ b/bridges/CoinDeskBridge.php @@ -1,16 +1,16 @@ maintainer = "mitsukarenai"; + $this->name = "CoinDesk"; + $this->uri = "http://www.coindesk.com/"; + $this->description = "Returns the 5 newest posts from CoinDesk (full text)"; + $this->update = "2014-05-30"; + + } + public function collectData(array $param){ function CoinDeskStripCDATA($string) { diff --git a/bridges/CollegeDeFranceBridge.php b/bridges/CollegeDeFranceBridge.php index 6526eaea..e9e0dbc0 100644 --- a/bridges/CollegeDeFranceBridge.php +++ b/bridges/CollegeDeFranceBridge.php @@ -1,15 +1,16 @@ maintainer = "pit-fgfjiudghdf"; + $this->name = "CollegeDeFrance"; + $this->uri = "http://www.college-de-france.fr/"; + $this->description = "Returns the 10 newest posts from CollegeDeFrance"; + $this->update = "2014-05-26"; + + } + public function collectData(array $param){ $find = array('janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'novembre', 'décembre'); $replace = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); diff --git a/bridges/CommonDreamsBridge.php b/bridges/CommonDreamsBridge.php index 07247e56..2a30f37e 100644 --- a/bridges/CommonDreamsBridge.php +++ b/bridges/CommonDreamsBridge.php @@ -1,16 +1,16 @@ maintainer = "nyutag"; + $this->name = "CommonDreams Bridge"; + $this->uri = "http://www.commondreams.org/"; + $this->description = "Returns the newest articles."; + $this->update = "2015-04-03"; + + } + public function collectData(array $param){ function CommonDreamsUrl($string) { diff --git a/bridges/CopieDoubleBridge.php b/bridges/CopieDoubleBridge.php index c163bf6b..12b3a8a9 100644 --- a/bridges/CopieDoubleBridge.php +++ b/bridges/CopieDoubleBridge.php @@ -1,14 +1,17 @@ maintainer = "superbaillot.net"; + $this->name = "CopieDouble"; + $this->uri = "http://www.copie-double.com/"; + $this->description = "CopieDouble"; + $this->update = "12/12/2013"; + + } + + public function collectData(array $param){ $html = file_get_html('http://www.copie-double.com/') or $this->returnError('Could not request CopieDouble.', 404); $table = $html->find('table table', 2); diff --git a/bridges/CourrierInternationalBridge.php b/bridges/CourrierInternationalBridge.php index 2ad5899d..a7ff8b03 100644 --- a/bridges/CourrierInternationalBridge.php +++ b/bridges/CourrierInternationalBridge.php @@ -1,15 +1,16 @@ maintainer = "teromene"; + $this->name = "CourrierInternational"; + $this->uri = "http://CourrierInternational.fr/"; + $this->description = "Courrier International bridge"; + $this->update = "01/09/2015"; + + } + public function collectData(array $param){ function fetchArticle($link) { diff --git a/bridges/DansTonChatBridge.php b/bridges/DansTonChatBridge.php index 7e2e69e0..95a1cf5a 100644 --- a/bridges/DansTonChatBridge.php +++ b/bridges/DansTonChatBridge.php @@ -1,17 +1,16 @@ maintainer = "Astalaseven"; + $this->name = "DansTonChat Bridge"; + $this->uri = "http://danstonchat.com/latest.html"; + $this->description = "Returns latest quotes from DansTonChat."; + $this->update = "2014-05-25"; + + } + public function collectData(array $param){ $html = ''; $link = 'http://danstonchat.com/latest.html'; diff --git a/bridges/DemoBridge.php b/bridges/DemoBridge.php index df38be6b..7c87675c 100644 --- a/bridges/DemoBridge.php +++ b/bridges/DemoBridge.php @@ -1,15 +1,4 @@ maintainer = "polopollo"; + $this->name = "Developpez.com Actus (FR)"; + $this->uri = "http://www.developpez.com/"; + $this->description = "Returns the 15 newest posts from DeveloppezDotCom (full text)."; + $this->update = "2014-07-14"; + + } + public function collectData(array $param){ function DeveloppezDotComStripCDATA($string) { diff --git a/bridges/DilbertBridge.php b/bridges/DilbertBridge.php index d56986c2..30cbb1c6 100644 --- a/bridges/DilbertBridge.php +++ b/bridges/DilbertBridge.php @@ -1,15 +1,16 @@ maintainer = "kranack"; + $this->name = "Dilbert Daily Strip"; + $this->uri = "http://dilbert.com/strips/"; + $this->description = "The Unofficial Dilbert Daily Comic Strip"; + $this->update = "30/01/2015"; + + } + public function collectData(array $param){ $html = file_get_html('http://dilbert.com/strips/') or $this->returnError('Could not request Dilbert.', 404); diff --git a/bridges/FSBridge.php b/bridges/FSBridge.php index bc550133..11334d52 100644 --- a/bridges/FSBridge.php +++ b/bridges/FSBridge.php @@ -1,19 +1,15 @@ maintainer = "qwertygc"; + $this->name = "Futurasciences"; + $this->uri = "http://www.futura-sciences.com"; + $this->description = "Returns the 5 newest posts from FS (full text)"; + $this->update = "03/11/2015"; - + } public function collectData(array $param){ diff --git a/bridges/FootitoBridge.php b/bridges/FootitoBridge.php index 2731d5c7..467f0429 100644 --- a/bridges/FootitoBridge.php +++ b/bridges/FootitoBridge.php @@ -1,14 +1,16 @@ maintainer = "superbaillot.net"; + $this->name = "Footito"; + $this->uri = "http://www.footito.fr/"; + $this->description = "Footito"; + $this->update = "21/11/2013"; + + } + public function collectData(array $param){ $html = file_get_html('http://www.footito.fr/') or $this->returnError('Could not request Footito.', 404); diff --git a/bridges/FrandroidBridge.php b/bridges/FrandroidBridge.php index 7ee6c9c9..80aac5db 100644 --- a/bridges/FrandroidBridge.php +++ b/bridges/FrandroidBridge.php @@ -1,16 +1,15 @@ maintainer = "Daiyousei"; + $this->name = "Frandroid"; + $this->uri = "http://www.frandroid.com/"; + $this->description = "Returns the RSS feed from Frandroid (full text articles)"; + $this->update = "2015-03-05"; + + } public function collectData(array $param) { diff --git a/bridges/GizmodoFRBridge.php b/bridges/GizmodoFRBridge.php index b2e8a21e..bb19fc3d 100644 --- a/bridges/GizmodoFRBridge.php +++ b/bridges/GizmodoFRBridge.php @@ -1,16 +1,16 @@ maintainer = "polopollo"; + $this->name = "GizmodoFR"; + $this->uri = "http://www.gizmodo.fr/"; + $this->description = "Returns the 15 newest posts from GizmodoFR (full text)."; + $this->update = "2014-07-14"; + + } + public function collectData(array $param){ function GizmodoFRExtractContent($url) { diff --git a/bridges/GuruMedBridge.php b/bridges/GuruMedBridge.php index 032148bd..de836cb3 100644 --- a/bridges/GuruMedBridge.php +++ b/bridges/GuruMedBridge.php @@ -1,18 +1,15 @@ maintainer = "qwertygc"; + $this->name = "GuruMed"; + $this->uri = "http://www.gurumed.org"; + $this->description = "Returns the 5 newest posts from Gurumed (full text)"; + $this->update = "03/10/2015"; - + } public function collectData(array $param){ diff --git a/bridges/KoreusBridge.php b/bridges/KoreusBridge.php index 8ae90e8a..af99bf20 100644 --- a/bridges/KoreusBridge.php +++ b/bridges/KoreusBridge.php @@ -1,16 +1,16 @@ maintainer = "pit-fgfjiudghdf"; + $this->name = "Koreus"; + $this->uri = "http://www.koreus.com/"; + $this->description = "Returns the 5 newest posts from Koreus (full text)"; + $this->update = "2014-05-26"; + + } + public function collectData(array $param){ function KoreusStripCDATA($string) { diff --git a/bridges/LeJournalDuGeekBridge.php b/bridges/LeJournalDuGeekBridge.php index 07559012..5ed3b5e5 100644 --- a/bridges/LeJournalDuGeekBridge.php +++ b/bridges/LeJournalDuGeekBridge.php @@ -1,16 +1,16 @@ maintainer = "polopollo"; + $this->name = "journaldugeek.com (FR)"; + $this->uri = "http://www.journaldugeek.com/"; + $this->description = "Returns the 5 newest posts from LeJournalDuGeek (full text)."; + $this->update = "2014-07-14"; + + } + public function collectData(array $param){ function LeJournalDuGeekStripCDATA($string) { diff --git a/bridges/LeMondeInformatiqueBridge.php b/bridges/LeMondeInformatiqueBridge.php index f007fb01..a0c16b2b 100644 --- a/bridges/LeMondeInformatiqueBridge.php +++ b/bridges/LeMondeInformatiqueBridge.php @@ -1,17 +1,16 @@ maintainer = "ORelio"; + $this->name = "Le Monde Informatique"; + $this->uri = "http://www.lemondeinformatique.fr/"; + $this->description = "Returns the newest articles."; + $this->update = "2015-09-08"; + + } + public function collectData(array $param) { function StripCDATA($string) { diff --git a/bridges/LeMotDuJourBridge.php b/bridges/LeMotDuJourBridge.php index 9149449b..8ea8ee61 100644 --- a/bridges/LeMotDuJourBridge.php +++ b/bridges/LeMotDuJourBridge.php @@ -1,12 +1,15 @@ maintainer = "qwertygc"; + $this->name = "LeMotDuJour Bridge"; + $this->uri = "http://www.lemotdujour.com/"; + $this->description = "Returns the newest articles."; + $this->update = "2014-05-25"; + + } public function collectData(array $param){ diff --git a/bridges/Les400Culs.php b/bridges/Les400Culs.php index f01e3646..dcb17ae8 100644 --- a/bridges/Les400Culs.php +++ b/bridges/Les400Culs.php @@ -1,10 +1,4 @@ maintainer = "unknown"; + $this->name = "Les 400 Culs"; + $this->uri = "http://sexes.blogs.liberation.fr"; + $this->description = "La planète sexe vue par Agnès Girard via rss-bridge"; + $this->update = "20/02/2014"; + + } + + public function collectData(array $param){ $param['url'] = RSS; parent::collectData($param); diff --git a/bridges/LesJoiesDuCodeBridge.php b/bridges/LesJoiesDuCodeBridge.php index d9cc0028..2dd1c44b 100644 --- a/bridges/LesJoiesDuCodeBridge.php +++ b/bridges/LesJoiesDuCodeBridge.php @@ -1,14 +1,16 @@ maintainer = "superbaillot.net"; + $this->name = "Les Joies Du Code"; + $this->uri = "http://lesjoiesducode.fr/"; + $this->description = "LesJoiesDuCode"; + $this->update = "04/02/2015"; + + } + public function collectData(array $param){ $html = file_get_html('http://lesjoiesducode.fr/') or $this->returnError('Could not request LesJoiesDuCode.', 404);