From 7f46cc3e91d8a7120501c3424ed7bc79360bcb86 Mon Sep 17 00:00:00 2001 From: pit-fgfjiudghdf Date: Sat, 31 May 2014 12:39:35 +0200 Subject: [PATCH] Create Rue89Bridge.php Voici le code. Mon serveur est en vrac, je ne peux pas valider qu il fonctionne tjs mais, il y a une semaine je n'avais pas de soucis. --- bridges/Rue89Bridge.php | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 bridges/Rue89Bridge.php diff --git a/bridges/Rue89Bridge.php b/bridges/Rue89Bridge.php new file mode 100644 index 0000000..3bb313d --- /dev/null +++ b/bridges/Rue89Bridge.php @@ -0,0 +1,50 @@ +', '', $string); + return $string; + } + 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('/(