fix: huanqiu fetch error (#10795)

This commit is contained in:
zhnxin 2022-09-15 19:32:19 +08:00 committed by GitHub
parent 26ea7ca23c
commit 8e6d3adae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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