2014-05-26 21:45:10 +04:00
|
|
|
<?php
|
|
|
|
|
2022-07-01 16:10:30 +03:00
|
|
|
class KoreusBridge extends FeedExpander
|
|
|
|
{
|
|
|
|
const MAINTAINER = 'pit-fgfjiudghdf';
|
|
|
|
const NAME = 'Koreus';
|
|
|
|
const URI = 'https://www.koreus.com/';
|
|
|
|
const DESCRIPTION = 'Returns the newest posts from Koreus (full text)';
|
2015-11-04 01:28:44 +03:00
|
|
|
|
2023-10-13 02:59:05 +03:00
|
|
|
protected function parseItem(array $item)
|
2022-07-01 16:10:30 +03:00
|
|
|
{
|
|
|
|
$html = getSimpleHTMLDOMCached($item['uri']);
|
|
|
|
$text = $html->find('p.itemText', 0)->innertext;
|
|
|
|
$item['content'] = utf8_encode($text);
|
2015-11-04 01:28:44 +03:00
|
|
|
|
2022-07-01 16:10:30 +03:00
|
|
|
return $item;
|
|
|
|
}
|
2016-08-03 21:07:33 +03:00
|
|
|
|
2022-07-01 16:10:30 +03:00
|
|
|
public function collectData()
|
|
|
|
{
|
|
|
|
$this->collectExpandableDatas('https://feeds.feedburner.com/Koreus-articles');
|
|
|
|
}
|
2016-08-03 21:07:33 +03:00
|
|
|
}
|