mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-27 20:12:11 +03:00
23 lines
645 B
PHP
23 lines
645 B
PHP
|
<?php
|
||
|
class PhoronixBridge extends FeedExpander {
|
||
|
|
||
|
const MAINTAINER = 'IceWreck';
|
||
|
const NAME = 'Phoronix Bridge';
|
||
|
const URI = 'https://www.phoronix.com';
|
||
|
const CACHE_TIMEOUT = 3600;
|
||
|
const DESCRIPTION = 'RSS feed for Linux news website Phoronix';
|
||
|
|
||
|
public function collectData(){
|
||
|
$this->collectExpandableDatas('https://www.phoronix.com/rss.php', 15);
|
||
|
}
|
||
|
|
||
|
protected function parseItem($newsItem){
|
||
|
$item = parent::parseItem($newsItem);
|
||
|
// $articlePage gets the entire page's contents
|
||
|
$articlePage = getSimpleHTMLDOM($newsItem->link);
|
||
|
$article = $articlePage->find('.content', 0);
|
||
|
$item['content'] = $article;
|
||
|
return $item;
|
||
|
}
|
||
|
}
|