mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-24 12:15:32 +08:00
fix: 修复【Prestige 蚊香社】报错 (#6298)
This commit is contained in:
@@ -15,7 +15,8 @@ module.exports = async (ctx) => {
|
||||
await page.waitForSelector('.button_r18_prestige');
|
||||
await page.click('#AC');
|
||||
await page.waitForSelector('#body_goods');
|
||||
const html = await page.evaluate((window) => window.document.body.innerHTML);
|
||||
const bodyHandle = await page.$('body');
|
||||
const html = await page.evaluate((body) => body.innerHTML, bodyHandle);
|
||||
|
||||
const $ = cheerio.load(html);
|
||||
const list = $('div#body_goods li');
|
||||
|
||||
Reference in New Issue
Block a user