fix(route): github topic (#10700)

This commit is contained in:
erriy
2022-09-05 20:05:06 +08:00
committed by GitHub
parent e47c9c1d8c
commit 0a92a54ca6

View File

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