#coding=utf-8
from selenium import webdriver #滚动到浏览器顶部
js_top = "var q=document.documentElement.scrollTop=0" #滚动到浏览器底部
js_bottom = "var q=document.documentElement.scrollTop=10000"
js_bottom2 = "window.scrollTo(0,document.body.scrollHeight)" driver = webdriver.Chrome()
driver.get(url)
driver.execute_script(js_bottom)
driver.execute_script(js_top)
driver.close()
05-11 22:21