1
0
mirror of https://github.com/comatory/fb2iCal synced 2024-12-26 16:33:32 +01:00

switch puppeteer to headless

This commit is contained in:
Ondrej Synacek 2019-10-16 09:07:20 +02:00
parent 939980cae2
commit e43dde03f9

View File

@ -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)