Your Name 3 年之前
父节点
当前提交
029031c038
共有 1 个文件被更改,包括 1 次插入0 次删除
  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("https://www.hhh.com.tw/cases/detail/"+l+"/index.php")
         driver.get(l)
         driver.get(l)
         print(driver.current_url)
         print(driver.current_url)
+        driver.execute_script("window.scrollTo(0, window.scrollY + 200)")
 #        driver.implicitly_wait (2)
 #        driver.implicitly_wait (2)
         time.sleep(6)
         time.sleep(6)
     driver.quit()
     driver.quit()