mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-07 00:56:34 +02:00
refactor: FeedExpander::parseItem() descendants (#3744)
This commit is contained in:
23
bridges/FeedExpanderTestBridge.php
Normal file
23
bridges/FeedExpanderTestBridge.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
class FeedExpanderTestBridge extends FeedExpander
|
||||
{
|
||||
const MAINTAINER = 'No maintainer';
|
||||
const NAME = 'Unnamed bridge';
|
||||
const URI = 'https://esdf.com/';
|
||||
const DESCRIPTION = 'No description provided';
|
||||
const PARAMETERS = [];
|
||||
const CACHE_TIMEOUT = 3600;
|
||||
|
||||
public function collectData()
|
||||
{
|
||||
$url = 'http://static.userland.com/gems/backend/sampleRss.xml'; // rss 0.91
|
||||
//$url = 'http://feeds.nature.com/nature/rss/current?format=xml'; // rss 1.0
|
||||
//$url = 'https://dvikan.no/feed.xml'; // rss 2.0
|
||||
//$url = 'https://nedlasting.geonorge.no/geonorge/Tjenestefeed.xml'; // atom
|
||||
|
||||
$this->collectExpandableDatas($url);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user