Py学习  »  Python

python selenium-get(ctrl-u)等价的页面源代码

Rhys • 5 年前 • 1431 次点击  

我需要得到 ctrl-u键 相当于 browser.page_source 为了比较的目的。

这有可能吗 browser.execute_script 或者其他方法?

我试过各种方法 browser.get(view-source:https://www.example.com) 但还没找到解决办法。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/50096
 
1431 次点击  
文章 [ 2 ]  |  最新文章 5 年前