mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-25 10:14:31 +08:00
fix: 少数派更新导致的无法抓取正文的bug (#3385)
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = async (ctx) => {
|
||||
} else {
|
||||
const response = await got({ method: 'get', url: link });
|
||||
const $ = cheerio.load(response.data);
|
||||
description = $('div.content.wangEditor-txt.clock').html();
|
||||
description = $('#app > div.postPage.article-wrapper > div.article-detail > article > div.article-body').html();
|
||||
ctx.cache.set(key, description);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ module.exports = async (ctx) => {
|
||||
|
||||
const response = await got.get(itemUrl);
|
||||
const $ = cheerio.load(response.data);
|
||||
const description = $('div.content.wangEditor-txt.clock').html();
|
||||
const description = $('#app > div.postPage.article-wrapper > div.article-detail > article > div.article-body').html();
|
||||
|
||||
const single = {
|
||||
title: title,
|
||||
|
||||
@@ -21,7 +21,7 @@ module.exports = async (ctx) => {
|
||||
} else {
|
||||
const response = await got({ method: 'get', url: link });
|
||||
const $ = cheerio.load(response.data);
|
||||
description = $('div.content.wangEditor-txt.clock').html();
|
||||
description = $('#app > div.postPage.article-wrapper > div.article-detail > article > div.article-body').html();
|
||||
ctx.cache.set(key, description);
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ module.exports = async (ctx) => {
|
||||
}
|
||||
const response = await got.get(itemUrl);
|
||||
const $ = cheerio.load(response.data);
|
||||
const description = $('div.content.wangEditor-txt.clock').html();
|
||||
const description = $('#app > div.postPage.article-wrapper > div.article-detail > article > div.article-body').html();
|
||||
|
||||
const single = {
|
||||
title: title,
|
||||
|
||||
Reference in New Issue
Block a user