mirror of
https://github.com/ershisan99/scrape-icp.git
synced 2025-12-16 20:59:30 +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) => {
|
const step1 = async (page: Page) => {
|
||||||
console.log('step 1', url, JSON.stringify(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')
|
await sendScreenshot(bot, page, 'step 1')
|
||||||
}
|
}
|
||||||
const step2 = async (page: Page) => {
|
const step2 = async (page: Page) => {
|
||||||
@@ -126,22 +126,7 @@ const scrape = async () => {
|
|||||||
acceptDownloads: true,
|
acceptDownloads: true,
|
||||||
javaScriptEnabled: true,
|
javaScriptEnabled: true,
|
||||||
permissions: [
|
permissions: [
|
||||||
'geolocation',
|
'geolocation'
|
||||||
'notifications',
|
|
||||||
'midi',
|
|
||||||
'midi-sysex',
|
|
||||||
'push',
|
|
||||||
'camera',
|
|
||||||
'microphone',
|
|
||||||
'background-sync',
|
|
||||||
'ambient-light-sensor',
|
|
||||||
'accelerometer',
|
|
||||||
'gyroscope',
|
|
||||||
'magnetometer',
|
|
||||||
'accessibility-events',
|
|
||||||
'clipboard-read',
|
|
||||||
'clipboard-write',
|
|
||||||
'payment-handler'
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user