Your Name hace 3 años
padre
commit
49b6b22ff9
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      hhh/SEO/hhh_phantom.py

+ 2 - 0
hhh/SEO/hhh_phantom.py

@@ -8,6 +8,8 @@ for i in range(9999):
     options.add_argument('--headless')
     options.add_argument('--disable-gpu')  # Last I checked this was necessary.
 
+    options.add_argument('--no-sandbox')
+    options.add_argument('--disable-dev-shm-usage')
     driver = webdriver.Chrome(
     desired_capabilities=options.to_capabilities())
     driver.set_window_size(1400,1000)