fix: update github search selector (#5265)
This commit is contained in:
parent
ed12145219
commit
f018decc80
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue