make playwright headless and install deps before start

This commit is contained in:
andres
2023-03-13 23:49:36 +01:00
parent 0f5e436f94
commit 3b25016b93
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"dev": "nodemon src/index.ts",
"start": "ts-node-esm src/index.ts"
"start": "npx playwright install-deps && ts-node-esm src/index.ts"
},
"keywords": [],
"author": "Andres",

View File

@@ -101,7 +101,7 @@ const step6 = async (page: Page) => {
}
const scrape = async () => {
const browser = await chromium.launch({ headless: false })
const browser = await chromium.launch()
try {
const page = await browser.newPage()
await step1(page)