From 9dbd211813447657713562fced1b9f778a3a7da2 Mon Sep 17 00:00:00 2001 From: Antoine Turmel Date: Fri, 31 Jan 2020 15:01:46 +0100 Subject: [PATCH] Update GithubSearchBridge.php (#1431) Fixes #1430 --- bridges/GithubSearchBridge.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bridges/GithubSearchBridge.php b/bridges/GithubSearchBridge.php index fd90934cb1d..9c1face40ea 100644 --- a/bridges/GithubSearchBridge.php +++ b/bridges/GithubSearchBridge.php @@ -27,16 +27,16 @@ public function collectData(){ foreach($html->find('li.repo-list-item') as $element) { $item = array(); - $uri = $element->find('h3 a', 0)->href; + $uri = $element->find('.f4 a', 0)->href; $uri = substr(self::URI, 0, -1) . $uri; $item['uri'] = $uri; - $title = $element->find('h3', 0)->plaintext; + $title = $element->find('.f4', 0)->plaintext; $item['title'] = $title; // Description - if (count($element->find('p.d-inline-block')) != 0) { - $content = $element->find('p.d-inline-block', 0)->innertext; + if (count($element->find('p.mb-1')) != 0) { + $content = $element->find('p.mb-1', 0)->innertext; } else{ $content = 'No description'; }