0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2024-11-23 07:37:35 +00:00
RSS-Bridge_rss-bridge/bridges/ListverseBridge.php

24 lines
593 B
PHP

<?php
class ListverseBridge extends FeedExpander
{
const MAINTAINER = 'IceWreck';
const NAME = 'Listverse Bridge';
const URI = 'https://listverse.com/';
const CACHE_TIMEOUT = 3600;
const DESCRIPTION = 'RSS feed for Listverse';
public function collectData()
{
$this->collectExpandableDatas('https://listverse.com/feed/', 15);
}
protected function parseItem(array $item)
{
$dom = getSimpleHTMLDOM($item['uri']);
$article = $dom->find('#articlecontentonly', 0);
$item['content'] = $article;
return $item;
}
}