Jared 3 rokov pred
rodič
commit
78f96fb207
1 zmenil súbory, kde vykonal 1 pridanie a 3 odobranie
  1. 1 3
      hhh/SEO/local_1777.py

+ 1 - 3
hhh/SEO/local_1777.py

@@ -29,6 +29,7 @@ def re_get_webdriver():
     if driver is not None:
         print('closing....')
         driver.quit()
+        os.system('killall chrome')
         print('quit....')
         driver=None
     try:
@@ -45,9 +46,6 @@ def re_get_webdriver():
         options.add_argument("--user-agent=" +user_agent)
         options.add_argument("--incognito")
 
-        if driver is not None:
-            print('quit again....')
-            driver.quit()
         driver = webdriver.Chrome(options=options)
 
         driver.set_window_size(1400,1000)