Skip to content

Commit

Permalink
migrate to sparticuz/chromium (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonok-edm authored Sep 25, 2023
1 parent 8b50225 commit d286418
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions brave/lambda_actions/crawl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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
})

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d286418

Please sign in to comment.