From 24cdeabed814903ccd86b4ed99ebaf534ac3887a Mon Sep 17 00:00:00 2001 From: Lyra Date: Fri, 5 Apr 2019 10:53:28 +0200 Subject: [PATCH] [GithubSearchBridge] Update the bridge to match Github's layout --- bridges/GithubSearchBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/GithubSearchBridge.php b/bridges/GithubSearchBridge.php index fe8a721a..54385598 100644 --- a/bridges/GithubSearchBridge.php +++ b/bridges/GithubSearchBridge.php @@ -20,11 +20,11 @@ class GithubSearchBridge extends BridgeAbstract { 'o' => 'desc', 'type' => 'Repositories'); $url = self::URI . 'search?' . http_build_query($params); - + $html = getSimpleHTMLDOM($url) or returnServerError('Error while downloading the website content'); - foreach($html->find('div.repo-list-item') as $element) { + foreach($html->find('li.repo-list-item') as $element) { $item = array(); $uri = $element->find('h3 a', 0)->href;