Skip to content

Commit d94959c

Browse files
committed
pass headless state to the browser
1 parent 80ece21 commit d94959c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scrapegraphai/docloaders/chromium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def ascrape_undetected_chromedriver(self, url: str) -> str:
7777
logger.info(f"Starting scraping with {self.backend}...")
7878
results = ""
7979
try:
80-
driver = uc.Chrome()
80+
driver = uc.Chrome(headless=self.headless)
8181
results = driver.get(url).page_content
8282
except Exception as e:
8383
results = f"Error: {e}"

0 commit comments

Comments
 (0)