mirror of
https://github.com/ershisan99/scrape-icp.git
synced 2025-12-16 12:33:53 +00:00
try another url
This commit is contained in:
19
src/index.ts
19
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 {
|
||||
|
||||
Reference in New Issue
Block a user