This commit is contained in:
@@ -24,13 +24,14 @@ async function startTask() {
|
||||
timeout: <number>config.pageTimeOut
|
||||
});
|
||||
|
||||
await page.setViewport({ width: 1080, height: 1024 });
|
||||
// await page.setViewport({ width: 1080, height: 1024 });
|
||||
|
||||
// 抓取数量
|
||||
const number = await page.$eval(
|
||||
'#semiTabpost h2 span:last-child',
|
||||
el => el.textContent.trim()
|
||||
);
|
||||
|
||||
console.log('1 抓取到主播最新作品数:', number);
|
||||
|
||||
// 获取旧值
|
||||
|
||||
Reference in New Issue
Block a user