1
0
mirror of https://github.com/comatory/fb2iCal synced 2024-12-27 08:52:58 +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) => { const crawl = async (url) => {
console.log(`crawl started for URL ${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() const page = await browser.newPage()
await page.goto(url) await page.goto(url)