mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
Add the funny text that completes the title
This commit is contained in:
parent
ee45f0a829
commit
94a6b42a2b
@ -10,7 +10,7 @@
|
|||||||
* @maintainer qwertygc
|
* @maintainer qwertygc
|
||||||
*/
|
*/
|
||||||
class NextInpactBridge extends BridgeAbstract{
|
class NextInpactBridge extends BridgeAbstract{
|
||||||
|
|
||||||
public function collectData(array $param){
|
public function collectData(array $param){
|
||||||
|
|
||||||
function StripCDATA($string) {
|
function StripCDATA($string) {
|
||||||
@ -20,7 +20,8 @@ class NextInpactBridge extends BridgeAbstract{
|
|||||||
}
|
}
|
||||||
function ExtractContent($url) {
|
function ExtractContent($url) {
|
||||||
$html2 = file_get_html($url);
|
$html2 = file_get_html($url);
|
||||||
$text = $html2->find('div[itemprop=articleBody]', 0)->innertext;
|
$text = '<h2>'.$html2->find('div#actu_entete > h2', 0)->innertext.'</h2><br><br>';
|
||||||
|
$text = $text.$html2->find('div[itemprop=articleBody]', 0)->innertext;
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
$html = file_get_html('http://www.nextinpact.com/rss/news.xml') or $this->returnError('Could not request Nextinpact.', 404);
|
$html = file_get_html('http://www.nextinpact.com/rss/news.xml') or $this->returnError('Could not request Nextinpact.', 404);
|
||||||
@ -37,7 +38,7 @@ class NextInpactBridge extends BridgeAbstract{
|
|||||||
$limit++;
|
$limit++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName(){
|
public function getName(){
|
||||||
|
Loading…
Reference in New Issue
Block a user