From 0a92a54ca614bfc1b065e206d94d512589876b1c Mon Sep 17 00:00:00 2001 From: erriy Date: Mon, 5 Sep 2022 20:05:06 +0800 Subject: [PATCH] fix(route): github topic (#10700) --- lib/v2/github/topic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/github/topic.js b/lib/v2/github/topic.js index b1127d2763..e5a3809ff5 100644 --- a/lib/v2/github/topic.js +++ b/lib/v2/github/topic.js @@ -13,7 +13,7 @@ module.exports = async (ctx) => { .map((_, item) => { item = $(item); - const title = $(item.find('h1 a').get(1)).attr('href').slice(1); + const title = $(item.find('h3 a').get(1)).attr('href').slice(1); const author = title.split('/')[0]; const description = item.find('div.border-bottom > div > p + div').text(); const link = `https://github.com/${title}`;