From 8e6d3adae496da16ed7e3fede1ed8d6afda76f00 Mon Sep 17 00:00:00 2001 From: zhnxin Date: Thu, 15 Sep 2022 19:32:19 +0800 Subject: [PATCH] fix: huanqiu fetch error (#10795) --- lib/v2/huanqiu/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/huanqiu/index.js b/lib/v2/huanqiu/index.js index 9f8fa2eb8..e08ca376b 100644 --- a/lib/v2/huanqiu/index.js +++ b/lib/v2/huanqiu/index.js @@ -47,7 +47,7 @@ module.exports = async (ctx) => { url: item.link, }); const content = cheerio.load(detailResponse.data); - item.description = content('article').html(); + item.description = content('textarea.article-content').text(); item.author = content('span', '.source').text(); item.pubDate = timezone(parseDate(content('p.time').text()), +8); return item;