From 7f468a05bd5c1caf5ffdb370c9dbba2736ee5011 Mon Sep 17 00:00:00 2001 From: "Arik Jones (aider)" Date: Tue, 17 Sep 2024 14:51:09 -0500 Subject: [PATCH] feat: install only Chromium browser --- internal/scraper/scraper.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/scraper/scraper.go b/internal/scraper/scraper.go index 953e6b1..3a3fd91 100644 --- a/internal/scraper/scraper.go +++ b/internal/scraper/scraper.go @@ -117,10 +117,10 @@ func InitPlaywright() error { logger.Println("Initializing Playwright") var err error - // Install Playwright and browsers - err = playwright.Install() + // Install Playwright and Chromium browser + err = playwright.Install(&playwright.RunOptions{Browsers: []string{"chromium"}}) if err != nil { - return fmt.Errorf("could not install Playwright: %v", err) + return fmt.Errorf("could not install Playwright and Chromium: %v", err) } pw, err = playwright.Run()