fix: update github search selector (#5265)

This commit is contained in:
hoilc 2020-07-28 12:54:20 +08:00 committed by GitHub
parent ed12145219
commit f018decc80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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;