mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-23 07:37:35 +00:00
24 lines
613 B
PHP
24 lines
613 B
PHP
<?php
|
|
|
|
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)';
|
|
|
|
protected function parseItem(array $item)
|
|
{
|
|
$html = getSimpleHTMLDOMCached($item['uri']);
|
|
$text = $html->find('p.itemText', 0)->innertext;
|
|
$item['content'] = utf8_encode($text);
|
|
|
|
return $item;
|
|
}
|
|
|
|
public function collectData()
|
|
{
|
|
$this->collectExpandableDatas('https://feeds.feedburner.com/Koreus-articles');
|
|
}
|
|
}
|