fix: huanqiu fetch error (#10795)
This commit is contained in:
parent
26ea7ca23c
commit
8e6d3adae4
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue