mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
Fix page request
This commit is contained in:
parent
7c71377af0
commit
7b73f3217f
@ -601,6 +601,9 @@ class GithubTrendingBridge extends BridgeAbstract {
|
|||||||
$params = array('since' => urlencode($this->getInput('date_range')));
|
$params = array('since' => urlencode($this->getInput('date_range')));
|
||||||
$url = self::URI . '/' . $this->getInput('language') . '?' . http_build_query($params);
|
$url = self::URI . '/' . $this->getInput('language') . '?' . http_build_query($params);
|
||||||
|
|
||||||
|
$html = getSimpleHTMLDOM($url)
|
||||||
|
or returnServerError('Error while downloading the website content');
|
||||||
|
|
||||||
$this->items = [];
|
$this->items = [];
|
||||||
foreach($html->find('.Box-row') as $element) {
|
foreach($html->find('.Box-row') as $element) {
|
||||||
$item = array();
|
$item = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user