selenium 获取当前页面内容
时间: 2023-09-03 15:08:05 浏览: 213
在使用selenium获取当前页面内容时,可以使用driver对象的page_source属性。这个属性会返回当前标签页浏览器渲染之后的网页源代码。通过调用driver.page_source,你可以获取到当前页面的完整内容。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [利用selenium提取网页数据](https://blog.csdn.net/u010805109/article/details/99231311)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [Python爬虫代码,用于处理带有动态加载内容的网页,其中使用了Requests、Selenium和BeautifulSoup](https://download.csdn.net/download/weixin_44609920/88225732)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文