mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-16 21:44:01 +02:00
Add bridges for JohannesBlick Steinfeld, OM Online and UsesTech (#3489)
* Add bridges for JohannesBlick Steinfeld, OM Online and UsesTech * Fixed linit alert
This commit is contained in:
29
bridges/JohannesBlickBridge.php
Normal file
29
bridges/JohannesBlickBridge.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
class JohannesBlickBridge extends BridgeAbstract
|
||||
{
|
||||
const NAME = 'Johannes Blick';
|
||||
const URI = 'https://www.st-johannes-baptist.de/index.php/unsere-medien/johannesblick-archiv';
|
||||
const DESCRIPTION = 'RSS feed for Johannes Blick';
|
||||
const MAINTAINER = 'jummo4@yahoo.de';
|
||||
|
||||
public function collectData()
|
||||
{
|
||||
$html = getSimpleHTMLDOM(self::URI)
|
||||
or returnServerError('Could not request: ' . self::URI);
|
||||
|
||||
$html = defaultLinkTo($html, self::URI);
|
||||
foreach ($html->find('td > a') as $index => $a) {
|
||||
$item = []; // Create an empty item
|
||||
$articlePath = $a->href;
|
||||
$item['title'] = $a->innertext;
|
||||
$item['uri'] = $articlePath;
|
||||
$item['content'] = '';
|
||||
|
||||
$this->items[] = $item; // Add item to the list
|
||||
if (count($this->items) >= 10) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user