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