@@ -56,11 +56,11 @@ def re_get_webdriver():
def run_once(url):
global driver
- i=random.randint(0,2)
+ i=random.randint(0,7)
if i==0 or driver is None:
# if True:
+ time.sleep(8)
re_get_webdriver()
- time.sleep(3)
if driver is None:
return
try:
@@ -88,7 +88,4 @@ while True:
l=random.choice(lst)
print(l)
run_once(l)
- time.sleep(5)
- driver=None
-