|
@@ -102,6 +102,8 @@ def run_once(url):
|
|
if i<=3 or driver is None:
|
|
if i<=3 or driver is None:
|
|
# if True:
|
|
# if True:
|
|
re_get_webdriver()
|
|
re_get_webdriver()
|
|
|
|
+ if driver is None:
|
|
|
|
+ return
|
|
driver.execute_script('window.open("'+url+'","_blank");')
|
|
driver.execute_script('window.open("'+url+'","_blank");')
|
|
# driver.get(url)
|
|
# driver.get(url)
|
|
driver.execute_script("window.scrollTo(0, window.scrollY + 400)")
|
|
driver.execute_script("window.scrollTo(0, window.scrollY + 400)")
|