[GithubSearchBridge] Update the bridge to match Github's layout
This commit is contained in:
parent
380fdf2e40
commit
24cdeabed8
1 changed files with 2 additions and 2 deletions
|
@ -20,11 +20,11 @@ class GithubSearchBridge extends BridgeAbstract {
|
||||||
'o' => 'desc',
|
'o' => 'desc',
|
||||||
'type' => 'Repositories');
|
'type' => 'Repositories');
|
||||||
$url = self::URI . 'search?' . http_build_query($params);
|
$url = self::URI . 'search?' . http_build_query($params);
|
||||||
|
|
||||||
$html = getSimpleHTMLDOM($url)
|
$html = getSimpleHTMLDOM($url)
|
||||||
or returnServerError('Error while downloading the website content');
|
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();
|
$item = array();
|
||||||
|
|
||||||
$uri = $element->find('h3 a', 0)->href;
|
$uri = $element->find('h3 a', 0)->href;
|
||||||
|
|
Loading…
Reference in a new issue