@@ -71,7 +71,7 @@ def run_once(url):
#time.sleep(0.5)
driver.execute_script('window.open("'+url+'","_blank");')
driver.execute_script("window.scrollTo(0, window.scrollY + 400)")
- time.sleep(3)
+ time.sleep(1.222)
print(url)
#driver.quit()
except Exception as e:
@@ -16,7 +16,7 @@ while True:
x=random.randint(0,5)
y=random.randint(0,6)
if x==y:
- lst=resetlst()
+ lst=resetlst('https://www.tcdream.taichung.gov.tw/')
except:
import time
time.sleep(5)