diff --git a/brave/lambda_actions/crawl.js b/brave/lambda_actions/crawl.js index 39d309b..7b5f005 100644 --- a/brave/lambda_actions/crawl.js +++ b/brave/lambda_actions/crawl.js @@ -2,8 +2,8 @@ const urlLib = require('url') -const chromiumLib = require('@sparticuz/chrome-aws-lambda') -const puppeteerLib = chromiumLib.puppeteer +const chromiumLib = require('@sparticuz/chromium') +const puppeteerLib = require('puppeteer-core') const randomJsLib = require('random-js') const tldjsLib = require('tldjs') @@ -304,7 +304,7 @@ const start = async args => { const browser = await puppeteerLib.launch({ args: chromiumLib.args, defaultViewport: chromiumLib.defaultViewport, - executablePath: await chromiumLib.executablePath, + executablePath: await chromiumLib.executablePath(), headless: chromiumLib.headless }) diff --git a/package.json b/package.json index 4531f0a..b077579 100644 --- a/package.json +++ b/package.json @@ -21,13 +21,13 @@ "@aws-sdk/client-lambda": "3.386.0", "@aws-sdk/client-s3": "3.386.0", "@aws-sdk/client-sqs": "3.386.0", - "@sparticuz/chrome-aws-lambda": "^17.1.3", + "@sparticuz/chromium": "^117.0.0", "adblock-rs": "^0.7.18", "fkill": "^6.2.0", "fs-extra": "^8.1.0", "glob": "^7.1.4", "pg": "^8.8.0", - "puppeteer-core": "^17.1.3", + "puppeteer-core": "21.3.4", "random-js": "^2.1.0", "tldjs": "^2.3.1", "uuid": "^3.3.3"