blob: bffa4cda4ec765a91f6a39af251ef45e38b150bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?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;
}
}
|