from selenium import webdriver
driver = webdriver.Firefox()
driver.get('http://google.com')
print(driver.page_source)
Python-selenium: 打印整页response内容:driver.page_source
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240825082459112-376424429.jpg)
from selenium import webdriver
driver = webdriver.Firefox()
driver.get('http://google.com')
print(driver.page_source)