mirror of
https://github.com/ershisan99/scrape-icp.git
synced 2025-12-16 20:59:30 +00:00
update base image
This commit is contained in:
@@ -102,7 +102,7 @@ const step6 = async (page: Page) => {
|
||||
}
|
||||
|
||||
const scrape = async () => {
|
||||
const browser = await chromium.launch()
|
||||
const browser = await chromium.launch({ timeout: 200000 })
|
||||
try {
|
||||
const page = await browser.newPage()
|
||||
console.log('scraping...')
|
||||
@@ -114,6 +114,7 @@ const scrape = async () => {
|
||||
await step6(page)
|
||||
await browser.close()
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
await sendText(bot, JSON.stringify(e))
|
||||
await browser?.close?.()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user