Jared 2 anni fa
parent
commit
69c29c862c
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      gtrends/tredning_search.py

+ 5 - 0
gtrends/tredning_search.py

@@ -49,6 +49,11 @@ def init_webdriver():
 #    time.sleep(11)
 
     options = webdriver.ChromeOptions()
+    options.add_argument("--no-sandbox")
+    options.add_argument("--disable-dev-shm-usage")
+    options.add_argument("--headless")
+    options.add_argument("--incognito")
+
     driver = webdriver.Chrome(options=options)
 
 #    driver = webdriver.Remote(