Your Name hace 3 años
padre
commit
031631a867
Se han modificado 1 ficheros con 6 adiciones y 5 borrados
  1. 6 5
      hhh/SEO/hhh_777_edges.py

+ 6 - 5
hhh/SEO/hhh_777_edges.py

@@ -107,11 +107,12 @@ def run_once(url):
         re_get_webdriver()
     if driver is None:
         return
-    driver.execute_script('window.open("'+url+'","_blank");')
-#    driver.get(url)
-    driver.execute_script("window.scrollTo(0, window.scrollY + 400)")
-    time.sleep(1)
-
+    try:
+        driver.execute_script('window.open("'+url+'","_blank");')
+        driver.execute_script("window.scrollTo(0, window.scrollY + 400)")
+        time.sleep(1)
+    except:
+        print('exception')
 
 
 fpath=__file__