diff --git a/src/index.ts b/src/index.ts index 6f69d0c..2991aad 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,13 +24,14 @@ async function startTask() { timeout: 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); // 获取旧值