mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 12:21:31 +08:00
fix economist article displaying (#10884)
This commit is contained in:
@@ -7,7 +7,7 @@ const getArticleDetail = async (link, ctx) =>
|
||||
const response = await got(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
$('div.article-audio-player__center-tooltip').remove();
|
||||
const nextData = JSON.parse($('head script[type="application/ld+json"]').text());
|
||||
const nextData = JSON.parse($('head script[type="application/ld+json"]').first().text());
|
||||
|
||||
const article = ($('figure[class^=css-]').first().parent().parent().html() || '') + $('p.article__body-text').parent().html();
|
||||
const categories = nextData.keywords?.map((k) => k);
|
||||
|
||||
Reference in New Issue
Block a user