From 0953b6a7708e12994620cf7f665637f5731b7240 Mon Sep 17 00:00:00 2001 From: andres Date: Tue, 14 Mar 2023 02:12:33 +0100 Subject: [PATCH] try another url --- src/index.ts | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/index.ts b/src/index.ts index 186a809..4ec69ce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -44,7 +44,7 @@ bot.start(async (ctx) => { }) const step1 = async (page: Page) => { console.log('step 1', url, JSON.stringify(page)) - await page.goto(url) + await page.goto(url, { timeout: 100000 }) await sendScreenshot(bot, page, 'step 1') } const step2 = async (page: Page) => { @@ -126,22 +126,7 @@ const scrape = async () => { acceptDownloads: true, javaScriptEnabled: true, permissions: [ - 'geolocation', - 'notifications', - 'midi', - 'midi-sysex', - 'push', - 'camera', - 'microphone', - 'background-sync', - 'ambient-light-sensor', - 'accelerometer', - 'gyroscope', - 'magnetometer', - 'accessibility-events', - 'clipboard-read', - 'clipboard-write', - 'payment-handler' + 'geolocation' ] }) try {