mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-12 21:01:56 +08:00
pass headless state to the browser
This commit is contained in:
parent
80ece2179a
commit
d94959c3a2
@ -77,7 +77,7 @@ class ChromiumLoader(BaseLoader):
|
||||
logger.info(f"Starting scraping with {self.backend}...")
|
||||
results = ""
|
||||
try:
|
||||
driver = uc.Chrome()
|
||||
driver = uc.Chrome(headless=self.headless)
|
||||
results = driver.get(url).page_content
|
||||
except Exception as e:
|
||||
results = f"Error: {e}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user