import 'dotenv/config' import puppeteer from 'puppeteer' import fetchILMeteo from './scrapers/iLMeteo.js' const NIX_OPS = { executablePath: process.env.NIX_CHROMIUM_PATH, } const opts = process.env.ON_NIX ? NIX_OPS : {} const run = async () => { const browser = await puppeteer.launch(opts) const [iLMeteo] = await Promise.all([fetchILMeteo(browser)]) await browser.close() return { iLMeteo } } console.dir(await run(), { depth: null })