Your Name 3 rokov pred
rodič
commit
3ac1a39be5
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      hhh/SEO/hhh_phantom.py

+ 3 - 3
hhh/SEO/hhh_phantom.py

@@ -32,16 +32,16 @@ if True:
     driver = webdriver.Chrome(
     desired_capabilities=options.to_capabilities())
     driver.set_window_size(1400,1000)
-    for i in range(6):
+    for i in range(10):
         l=random.choice(lst)
     #    driver.get("https://www.hhh.com.tw/cases/detail/"+l+"/index.php")
 #        driver.get(l)
         driver.execute_script('window.open("'+l+'","_blank");')
 
         print(driver.current_url)
-        time.sleep(3)
+        time.sleep(4)
         driver.execute_script("window.scrollTo(0, window.scrollY + 400)")
-        time.sleep(3)
+        time.sleep(2)
 
 #        driver.implicitly_wait (2)
     driver.quit()