from selenium import webdriver import time driver = webdriver.PhantomJS(executable_path='F:\\Program Files\\phantomjs-2.1.1-windows\\bin\\phantomjs') # phantomjsd.exe的路径,包含此文件名 driver.get("http://pythonscraping.com/pages/javascript/ajaxDemo.html") time.sleep(3) print(driver.find_element_by_id('content').text) driver.close()
by: 发表于:2017-09-19 09:42:38 顶(0) | 踩(0) 回复
??
回复评论