mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-28 07:13:56 +03:00
[VMwareSecurityBridge] Remove bridge
There is fulltext RSS feed: https://www.vmware.com/security/advisories.xml
This commit is contained in:
parent
a4bd04310f
commit
655e02e3fe
1 changed files with 0 additions and 31 deletions
|
@ -1,31 +0,0 @@
|
||||||
<?php
|
|
||||||
class VMwareSecurityBridge extends BridgeAbstract {
|
|
||||||
|
|
||||||
const MAINTAINER = 'm0le.net';
|
|
||||||
const NAME = 'VMware Security Advisories';
|
|
||||||
const URI = 'https://www.vmware.com/security/advisories.html';
|
|
||||||
const CACHE_TIMEOUT = 7200; // 2h
|
|
||||||
const DESCRIPTION = 'VMware Security Advisories';
|
|
||||||
const WEBROOT = 'https://www.vmware.com';
|
|
||||||
|
|
||||||
public function collectData(){
|
|
||||||
$html = getSimpleHTMLDOM(self::URI)
|
|
||||||
or returnServerError('Could not request VSA.');
|
|
||||||
|
|
||||||
$html = defaultLinkTo($html, self::WEBROOT);
|
|
||||||
|
|
||||||
$item = array();
|
|
||||||
$articles = $html->find('div[class="news_block"]');
|
|
||||||
|
|
||||||
foreach ($articles as $element) {
|
|
||||||
$item['uri'] = $element->find('a', 0)->getAttribute('href');
|
|
||||||
$title = $element->find('a', 0)->innertext;
|
|
||||||
$item['title'] = $title;
|
|
||||||
$item['timestamp'] = strtotime($element->find('p', 0)->innertext);
|
|
||||||
$item['content'] = $element->find('p', 1)->innertext;
|
|
||||||
$item['uid'] = $title;
|
|
||||||
|
|
||||||
$this->items[] = $item;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue