2014-05-26 21:45:10 +04:00
|
|
|
<?php
|
2016-09-14 14:33:38 +03:00
|
|
|
class KoreusBridge extends FeedExpander {
|
2014-05-26 21:45:10 +04:00
|
|
|
|
2016-08-30 12:23:55 +03:00
|
|
|
const MAINTAINER = "pit-fgfjiudghdf";
|
|
|
|
const NAME = "Koreus";
|
|
|
|
const URI = "http://www.koreus.com/";
|
2016-09-14 14:33:38 +03:00
|
|
|
const DESCRIPTION = "Returns the newest posts from Koreus (full text)";
|
2015-11-04 01:28:44 +03:00
|
|
|
|
2016-09-14 14:33:38 +03: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-04 01:28:44 +03:00
|
|
|
|
2016-09-14 14:33:38 +03:00
|
|
|
return $item;
|
2016-08-03 21:07:33 +03:00
|
|
|
}
|
|
|
|
|
2016-08-25 02:24:53 +03:00
|
|
|
public function collectData(){
|
2016-09-14 14:33:38 +03:00
|
|
|
$this->collectExpandableDatas('http://feeds.feedburner.com/Koreus-articles');
|
2016-08-03 21:07:33 +03:00
|
|
|
}
|
|
|
|
}
|