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
|
|
|
|
2017-02-11 18:16:56 +03: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-04 01:28:44 +03:00
|
|
|
|
2017-02-11 18:16:56 +03:00
|
|
|
protected function parseItem($item){
|
2016-09-14 14:33:38 +03:00
|
|
|
$item = parent::parseItem($item);
|
|
|
|
|
2016-09-26 00:22:33 +03:00
|
|
|
$html = getSimpleHTMLDOMCached($item['uri']);
|
2016-09-14 14:33:38 +03:00
|
|
|
$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
|
|
|
}
|
|
|
|
}
|