diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-04-15 01:18:21 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-04-15 01:18:21 -0700 |
| commit | c9d2521b7beb5b5d1077565ec968cb3421497417 (patch) | |
| tree | abe9e4a2186d5b2762cb5bbc5675536857cbd1e5 /site_scraper.py | |
| parent | 8a68a0f554f780f0e973df181406eb25bb94b8f5 (diff) | |
add more optimization chromedriver flags
Diffstat (limited to 'site_scraper.py')
| -rw-r--r-- | site_scraper.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/site_scraper.py b/site_scraper.py index 644edf5..f801c20 100644 --- a/site_scraper.py +++ b/site_scraper.py @@ -25,6 +25,15 @@ class SiteScraper: self.chrome_options.add_argument("--disable-dev-shm-usage") self.chrome_options.add_argument("--window-size=1920,1080") self.chrome_options.add_argument("--no-sandbox") + self.chrome_options.add_argument("--disable-extensions") + self.chrome_options.add_argument("--disable-infobars") + self.chrome_options.add_argument("--disable-logging") + self.chrome_options.add_argument("--disable-background-networking") + self.chrome_options.add_argument("--disable-sync") + self.chrome_options.add_argument("--metrics-recording-only") + self.chrome_options.add_argument("--mute-audio") + self.chrome_options.add_argument("--remote-debugging-port=9222") + self.driver = webdriver.Chrome(service=self.service, options=self.chrome_options) except FileNotFoundError: |
