diff --git a/lib/crawler.js b/lib/crawler.js index 96a1287..8275dbe 100644 --- a/lib/crawler.js +++ b/lib/crawler.js @@ -2,7 +2,10 @@ const puppeteer = require('puppeteer') const crawl = async (url) => { console.log(`crawl started for URL ${url}`) - const browser = await puppeteer.launch() + const browser = await puppeteer.launch({ + headless: true, + args: [ '--no-sandbox' ], + }) const page = await browser.newPage() await page.goto(url)