diff --git a/lib/routes/github/search.js b/lib/routes/github/search.js index 14def463f..9c5e861e5 100644 --- a/lib/routes/github/search.js +++ b/lib/routes/github/search.js @@ -21,9 +21,10 @@ module.exports = async (ctx) => { const out = $('.repo-list li') .slice(0, 10) .map(function () { + const a = $(this).find('.f4.text-normal > a'); const single = { - title: $(this).find('div h3 a').text(), - link: host.concat($(this).find('div h3 a').attr('href')), + title: a.text(), + link: host.concat(a.attr('href')), description: $(this).find('div p').text().trim(), }; return single;