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

+ 2 - 2
hhh/SEO/hhh_phantom.py

@@ -17,7 +17,7 @@ for l in lines:
     elmts=l.split(',')
     lst.append('https://www.hhh.com.tw'+elmts[0])
 fr.close()
-
+lst=['https://www.hhh.com.tw/cases/detail/d/13051/index.php']
 #lst=['13781','3649','2116']
 #for i in range(9999):
 if True:
@@ -35,7 +35,7 @@ if True:
     #    driver.get("https://www.hhh.com.tw/cases/detail/"+l+"/index.php")
         driver.get(l)
         print(driver.current_url)
-        driver.execute_script("window.scrollTo(0, window.scrollY + 200)")
+        driver.execute_script("window.scrollTo(0, window.scrollY + 400)")
 #        driver.implicitly_wait (2)
         time.sleep(6)
     driver.quit()