fix: 修复【Prestige 蚊香社】报错 (#6298)
This commit is contained in:
parent
4b425cfbe7
commit
e3f68d7967
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue