2014-05-26 19:45:10 +02:00
|
|
|
<?php
|
2016-09-14 13:33:38 +02:00
|
|
|
class KoreusBridge extends FeedExpander {
|
2014-05-26 19:45:10 +02:00
|
|
|
|
2017-02-11 16:16:56 +01:00
|
|
|
const MAINTAINER = 'pit-fgfjiudghdf';
|
|
|
|
const NAME = 'Koreus';
|
|
|
|
const URI = 'http://www.koreus.com/';
|
|
|
|
const DESCRIPTION = 'Returns the newest posts from Koreus (full text)';
|
2015-11-03 23:28:44 +01:00
|
|
|
|
2017-02-11 16:16:56 +01:00
|
|
|
protected function parseItem($item){
|
2016-09-14 13:33:38 +02:00
|
|
|
$item = parent::parseItem($item);
|
|
|
|
|
2016-09-25 23:22:33 +02:00
|
|
|
$html = getSimpleHTMLDOMCached($item['uri']);
|
2016-09-14 13:33:38 +02:00
|
|
|
$text = $html->find('p.itemText', 0)->innertext;
|
|
|
|
$item['content'] = utf8_encode($text);
|
2015-11-03 23:28:44 +01:00
|
|
|
|
2016-09-14 13:33:38 +02:00
|
|
|
return $item;
|
2016-08-03 20:07:33 +02:00
|
|
|
}
|
|
|
|
|
2016-08-25 01:24:53 +02:00
|
|
|
public function collectData(){
|
2016-09-14 13:33:38 +02:00
|
|
|
$this->collectExpandableDatas('http://feeds.feedburner.com/Koreus-articles');
|
2016-08-03 20:07:33 +02:00
|
|
|
}
|
|
|
|
}
|