Jared 3 년 전
부모
커밋
78f96fb207
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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)