mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-29 23:58:23 +03:00
37cb4091d4
When fetching website contents, exceptions already raise on fetching error
20 lines
557 B
PHP
20 lines
557 B
PHP
<?php
|
||
class YahtzeeDevDiaryBridge extends BridgeAbstract {
|
||
const MAINTAINER = 'somini';
|
||
const NAME = "Yahtzee's Dev Diary";
|
||
const URI = 'https://www.escapistmagazine.com/v2/yahtzees-dev-diary-completed-games-list/';
|
||
const DESCRIPTION = 'Yahtzee’s Dev Diary Series';
|
||
|
||
public function collectData(){
|
||
$html = getSimpleHTMLDOM($this->getURI());
|
||
|
||
foreach($html->find('blockquote.wp-embedded-content a') as $element) {
|
||
$item = array();
|
||
|
||
$item['title'] = $element->innertext;
|
||
$item['uri'] = $element->href;
|
||
|
||
$this->items[] = $item;
|
||
}
|
||
}
|
||
}
|