您将需要通过
javascript使用硒
execute_script功能来获取文档
from time import sleep # this should go at the top of the filesleep(5)html = driver.execute_script("return document.getElementsByTagName('html')[0].innerHTML")print html这将使所有内容都进入
<html>标签内

您将需要通过
javascript使用硒
execute_script功能来获取文档
from time import sleep # this should go at the top of the filesleep(5)html = driver.execute_script("return document.getElementsByTagName('html')[0].innerHTML")print html这将使所有内容都进入
<html>标签内