|
@@ -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)
|