From 091bf7872e5c7d9373155b9225eefb6dfafcbaa6 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Fri, 30 Jan 2015 19:56:55 +0100 Subject: [PATCH] Rue89: fixes, optim, clean, meta --- bridges/Rue89Bridge.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/bridges/Rue89Bridge.php b/bridges/Rue89Bridge.php index 3bb313d..f1910c5 100644 --- a/bridges/Rue89Bridge.php +++ b/bridges/Rue89Bridge.php @@ -5,6 +5,8 @@ * * @name Rue89 * @description Returns the 5 newest posts from Rue89 (full text) +* @update 2015-01-30 +* @maintainer pit-fgfjiudghdf */ class Rue89Bridge extends BridgeAbstract{ public function collectData(array $param){ @@ -16,11 +18,17 @@ class Rue89Bridge extends BridgeAbstract{ function Rue89ExtractContent($url) { $html2 = file_get_html($url); //$text = $html2->find('div[class=text]', 0)->innertext; - $text = $html2->find('div article', 0)->innertext; - //$text = $html2->find('div.article', 0)->innertext; - //$text = $html2->find('div[id=main]', 0)->innertext; - //$text = $html2->find('div[id=article]', 0)->innertext; - //$text = preg_replace('/(