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
|
|
|
|
2016-08-30 11:23:55 +02:00
|
|
|
const MAINTAINER = "pit-fgfjiudghdf";
|
|
|
|
const NAME = "Koreus";
|
|
|
|
const URI = "http://www.koreus.com/";
|
2016-09-14 13:33:38 +02:00
|
|
|
const DESCRIPTION = "Returns the newest posts from Koreus (full text)";
|
2015-11-03 23:28:44 +01:00
|
|
|
|
2016-09-14 13:33:38 +02:00
|
|
|
protected function parseItem($item) {
|
|
|
|
$item = parent::parseItem($item);
|
|
|
|
|
|
|
|
$html = $this->getSimpleHTMLDOMCached($item['uri']);
|
|
|
|
$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
|
|
|
}
|
|
|
|
}
|