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

+ 1 - 0
hhh/SEO/hhh_phantom.py

@@ -35,6 +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.implicitly_wait (2)
         time.sleep(6)
     driver.quit()