Selenium runs js to download the files of the document network

from selenium import webdriver
driver=webdriver.Chrome()
driver.get("http://wenshu.court.gov.cn/List/List?sorttype=1&conditions=searchWord+1+AJLX++%E6%A1%88%E4%BB%B6%E7%B1%BB%E5%9E%8B:%E5%88%91%E4%BA%8B%E6%A1%88%E4%BB%B6") #
driver.execute_script("window.scrollTo(0,document.body.scrollHeight)")
driver.execute_script("a=DownLoadCase('8252121f-8260-4241-b707-018d52d151ca|Song Hao Criminal Decision on Bribery|2014-12-29')")
driver.execute_script("alert('DownloadOk')")

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325024674&siteId=291194637