From eaa8cf41738b2070a2a3015e8b3a71b4cdc0dc73 Mon Sep 17 00:00:00 2001 From: teromene Date: Thu, 5 Nov 2015 11:20:11 +0000 Subject: [PATCH] 3rd batch of bridges. Signed-off-by: teromene --- bridges/RaymondBridge.php | 21 +++++++++++---------- bridges/Releases3DSBridge.php | 21 ++++++++++----------- bridges/ReporterreBridge.php | 22 +++++++++++----------- bridges/Rue89Bridge.php | 21 +++++++++++---------- bridges/ScilogsBridge.php | 22 +++++++++++----------- bridges/ScmbBridge.php | 20 ++++++++++---------- bridges/SegfaultMintBridge.php | 15 +++++++-------- bridges/Sexactu.php | 16 ++++++++++------ bridges/SiliconBridge.php | 21 ++++++++++----------- bridges/TheCodingLoveBridge.php | 18 ++++++++++-------- bridges/TheOatMealBridge.php | 22 +++++++++++++--------- bridges/TuxboardBridge.php | 18 ++++++++++-------- bridges/WikipediaDEBridge.php | 22 +++++++++++----------- bridges/WikipediaENBridge.php | 20 ++++++++++---------- bridges/WikipediaEOBridge.php | 20 ++++++++++---------- bridges/WikipediaFRBridge.php | 20 ++++++++++---------- bridges/ZatazBridge.php | 18 ++++++++++-------- 17 files changed, 175 insertions(+), 162 deletions(-) diff --git a/bridges/RaymondBridge.php b/bridges/RaymondBridge.php index 2d79ebb..45e4b3d 100644 --- a/bridges/RaymondBridge.php +++ b/bridges/RaymondBridge.php @@ -1,15 +1,16 @@ maintainer = "pit-fgfjiudghdf"; + $this->name = "Raymond"; + $this->uri = "http://www.raymond.cc"; + $this->description = "Returns the 3 newest posts from Raymond.cc (full text)"; + $this->update = "2014-05-26"; + + } + public function collectData(array $param){ function raymondStripCDATA($string) { $string = str_replace('maintainer = "ORelio"; + $this->name = "3DS Scene Releases"; + $this->uri = "http://www.3dsdb.com/"; + $this->description = "Returns the newest scene releases."; + $this->update = "2015-09-17"; + + } + public function collectData(array $param) { function ExtractFromDelimiters($string, $start, $end) { diff --git a/bridges/ReporterreBridge.php b/bridges/ReporterreBridge.php index 3567edb..7353722 100644 --- a/bridges/ReporterreBridge.php +++ b/bridges/ReporterreBridge.php @@ -1,16 +1,16 @@ maintainer = "nyutag"; + $this->name = "Reporterre Bridge"; + $this->uri = "http://www.reporterre.net/"; + $this->description = "Returns the newest articles."; + $this->update = "2015-04-07"; + + } + public function collectData(array $param){ function ExtractContentReporterre($url) { diff --git a/bridges/Rue89Bridge.php b/bridges/Rue89Bridge.php index 0fe0033..cdd7780 100644 --- a/bridges/Rue89Bridge.php +++ b/bridges/Rue89Bridge.php @@ -1,15 +1,16 @@ maintainer = "pit-fgfjiudghdf"; + $this->name = "Rue89"; + $this->uri = "http://rue89.nouvelobs.com/"; + $this->description = "Returns the 5 newest posts from Rue89 (full text)"; + $this->update = "2015-01-30"; + + } + public function collectData(array $param){ function Rue89StripCDATA($string) { $string = str_replace('maintainer = "qwertygc"; + $this->name = "Scilogs Bridge"; + $this->uri = "http://www.scilogs.fr/"; + $this->description = "Returns the newest articles."; + $this->update = "2014-05-25"; + + } + public function collectData(array $param){ function ScilogsStripCDATA($string) { diff --git a/bridges/ScmbBridge.php b/bridges/ScmbBridge.php index 4bad374..dd2fa0d 100644 --- a/bridges/ScmbBridge.php +++ b/bridges/ScmbBridge.php @@ -1,15 +1,15 @@ maintainer = "Astalaseven"; + $this->name = "Se Coucher Moins Bête Bridge"; + $this->uri = "http://secouchermoinsbete.fr/"; + $this->description = "Returns the newest anecdotes."; + $this->update = "2014-05-25"; + + } public function collectData(array $param){ $html = ''; diff --git a/bridges/SegfaultMintBridge.php b/bridges/SegfaultMintBridge.php index bb89c45..a2cbc20 100644 --- a/bridges/SegfaultMintBridge.php +++ b/bridges/SegfaultMintBridge.php @@ -1,16 +1,15 @@ maintainer = "qwertygc"; + $this->name = "SegfaultMint"; + $this->uri = "http://segfault.linuxmint.com/"; + $this->description = "Returns the 5 newest posts from SegfaultMint (full text)"; + $this->update = "2014-07-05"; - + } public function collectData(array $param){ diff --git a/bridges/Sexactu.php b/bridges/Sexactu.php index edc173f..c820f5e 100644 --- a/bridges/Sexactu.php +++ b/bridges/Sexactu.php @@ -1,13 +1,17 @@ maintainer = "Riduidel"; + $this->name = "Sexactu"; + $this->uri = "http://www.gqmagazine.fr"; + $this->description = "Sexactu via rss-bridge"; + $this->update = "04/02/2014"; + + } + 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/SiliconBridge.php b/bridges/SiliconBridge.php index ca712d2..27e0e91 100644 --- a/bridges/SiliconBridge.php +++ b/bridges/SiliconBridge.php @@ -1,17 +1,16 @@ maintainer = "ORelio"; + $this->name = "Silicon.fr"; + $this->uri = "http://www.silicon.fr/"; + $this->description = "Returns the newest articles."; + $this->update = "2015-09-08"; + + } + public function collectData(array $param) { function StripCDATA($string) { diff --git a/bridges/TheCodingLoveBridge.php b/bridges/TheCodingLoveBridge.php index 387adec..bd2fe85 100644 --- a/bridges/TheCodingLoveBridge.php +++ b/bridges/TheCodingLoveBridge.php @@ -1,14 +1,16 @@ maintainer = "superbaillot.net"; + $this->name = "The Coding Love"; + $this->uri = "http://thecodinglove.com/"; + $this->description = "The Coding Love"; + $this->update = "04/02/2015"; + + } + public function collectData(array $param){ $html = file_get_html('http://thecodinglove.com/') or $this->returnError('Could not request The Coding Love.', 404); diff --git a/bridges/TheOatMealBridge.php b/bridges/TheOatMealBridge.php index 7342ec2..ba431c8 100644 --- a/bridges/TheOatMealBridge.php +++ b/bridges/TheOatMealBridge.php @@ -1,18 +1,22 @@ maintainer = "Riduidel"; + $this->name = "The Oatmeal"; + $this->uri = "http://theoatmeal.com/"; + $this->description = "Un petit site de dessins assez rigolos"; + $this->update = "2015-07-03"; + + } + public function collectData(array $param){ $param['url'] = THE_OATMEAL_RSS; parent::collectData($param); diff --git a/bridges/TuxboardBridge.php b/bridges/TuxboardBridge.php index f038fbd..63f9d09 100644 --- a/bridges/TuxboardBridge.php +++ b/bridges/TuxboardBridge.php @@ -1,14 +1,16 @@ maintainer = "superbaillot.net"; + $this->name = "Tuxboard"; + $this->uri = "http://www.tuxboard.com/"; + $this->description = "Tuxboard"; + $this->update = "2014-07-08"; + + } + public function collectData(array $param){ function StripCDATA($string) { diff --git a/bridges/WikipediaDEBridge.php b/bridges/WikipediaDEBridge.php index 973170d..79b66fe 100644 --- a/bridges/WikipediaDEBridge.php +++ b/bridges/WikipediaDEBridge.php @@ -1,21 +1,21 @@ maintainer = "cnlpete"; + $this->name = "Wikipedia DE Today's Featured Article..."; + $this->uri = "https://de.wikipedia.org/"; + $this->description = "Returns the highlighted en.wikipedia.org article."; + $this->update = "2015-11-04"; + + } + public function collectData(array $param){ $html = ''; $host = 'http://de.wikipedia.org'; // If you want HTTPS access instead, uncomment the following line: - //$host = 'https://en.wikipedia.org'; + //$host = 'https://de.wikipedia.org'; $link = '/wiki/Wikipedia:Hauptseite'; $html = file_get_html($host.$link) or $this->returnError('Could not request Wikipedia DE.', 404); diff --git a/bridges/WikipediaENBridge.php b/bridges/WikipediaENBridge.php index 128b170..adf7b16 100644 --- a/bridges/WikipediaENBridge.php +++ b/bridges/WikipediaENBridge.php @@ -1,16 +1,16 @@ maintainer = "gsurrel"; + $this->name = "Wikipedia EN 'Today's Featured Article...'"; + $this->uri = "https://en.wikipedia.org/"; + $this->description = "Returns the highlighted en.wikipedia.org article."; + $this->update = "2014-05-25"; + + } + public function collectData(array $param){ $html = ''; $host = 'http://en.wikipedia.org'; diff --git a/bridges/WikipediaEOBridge.php b/bridges/WikipediaEOBridge.php index 1aa0681..4f0d7ad 100644 --- a/bridges/WikipediaEOBridge.php +++ b/bridges/WikipediaEOBridge.php @@ -1,16 +1,16 @@ maintainer = "gsurrel"; + $this->name = "Wikipedia EO 'Artikolo de la semajno'"; + $this->uri = "https://eo.wikipedia.org/"; + $this->description = "Returns the highlighted eo.wikipedia.org article."; + $this->update = "2014-05-25"; + + } + public function collectData(array $param){ $html = ''; $host = 'http://eo.wikipedia.org'; diff --git a/bridges/WikipediaFRBridge.php b/bridges/WikipediaFRBridge.php index e844ceb..741452a 100644 --- a/bridges/WikipediaFRBridge.php +++ b/bridges/WikipediaFRBridge.php @@ -1,16 +1,16 @@ maintainer = "gsurrel"; + $this->name = "Wikipedia FR 'Lumière sur...'"; + $this->uri = "https://fr.wikipedia.org/"; + $this->description = "Returns the highlighted fr.wikipedia.org article."; + $this->update = "2014-05-25"; + + } + public function collectData(array $param){ $html = ''; $host = 'http://fr.wikipedia.org'; diff --git a/bridges/ZatazBridge.php b/bridges/ZatazBridge.php index b5affbc..b52c4dd 100644 --- a/bridges/ZatazBridge.php +++ b/bridges/ZatazBridge.php @@ -1,14 +1,16 @@ maintainer = "aledeg"; + $this->name = "Zataz"; + $this->uri = "http://www.zataz.com/"; + $this->description = "ZATAZ Magazine - S'informer, c'est déjà se sécuriser"; + $this->update = "07/02/2015"; + + } + public function collectData(array $param) { $html = file_get_html($this->getURI()) or $this->returnError('Could not request ' . $this->getURI(), 404);