wangkun 2 anni fa
parent
commit
466e3edd4b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      weixinzhishu/weixinzhishu_main/search_key.py

+ 1 - 0
weixinzhishu/weixinzhishu_main/search_key.py

@@ -48,6 +48,7 @@ class Searchkey:
             # cls.close_weixinzhishu(log_type, crawler)
             # cls.close_weixinzhishu(log_type, crawler)
             weixinzhishu_driver = cls.close_weixinzhishu(log_type, crawler)
             weixinzhishu_driver = cls.close_weixinzhishu(log_type, crawler)
             weixinzhishu_driver.find_elements(By.NAME, '关闭')[-1].click()
             weixinzhishu_driver.find_elements(By.NAME, '关闭')[-1].click()
+            cls.kill_pid(log_type, crawler)
         except Exception as e:
         except Exception as e:
             Common.logger(log_type, crawler).error(f'start_wechat异常:{e}\n')
             Common.logger(log_type, crawler).error(f'start_wechat异常:{e}\n')