fix(route): Add category to ft.com feed & Update full text mechanism. (#13387)

This commit is contained in:
Andvari
2023-09-25 20:23:54 +08:00
committed by GitHub
parent af1c20ace8
commit bbb753b9e8
+2 -1
View File
@@ -27,7 +27,8 @@ module.exports = async (ctx) => {
const $ = cheerio.load(response.data);
item.description = ProcessFeed($('div.article__content-body'));
item.description = ProcessFeed($('article.js-article__content-body'));
item.category = JSON.parse($('script[type="application/ld+json"]').eq(1).text()).itemListElement.map((e) => e.name);
item.author = $('a.n-content-tag--author').text();
return item;