From 1ea4c57dc19ad2cd2b6640f0c806015ba3bbac1a Mon Sep 17 00:00:00 2001 From: bmy <2271608011@qq.com> Date: Thu, 28 May 2026 11:02:51 +0800 Subject: [PATCH] d --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); // 获取旧值