日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

返回动态html,使用硒返回动态页面的html代码

發布時間:2025/3/20 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 返回动态html,使用硒返回动态页面的html代码 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我想抓取這個網站,問題是它的動態加載。使用硒返回動態頁面的html代碼

基本上我想要什么,我可以從瀏覽器控制臺中看到的,不是我所看到的,當我點擊右鍵>節目源。

我已經嘗試了一些硒的例子,但我不能讓我的需要。下面的代碼使用硒,并得到只有你點擊右鍵 - >顯示代碼。我如何獲取加載頁面的內容?

from selenium.webdriver.support.ui import WebDriverWait

from selenium.webdriver.support import expected_conditions as EC

from selenium.webdriver.common.by import By

from selenium import webdriver

import time

# Start the WebDriver and load the page

wd = webdriver.Firefox()

wd.get("https://www.leforem.be/particuliers/offres-emploi-recherche-par-criteres.html?exParfullText=&exPar_search_=true& exParGeographyEdi=true")

# Wait for the dynamically loaded elements to show up

time.sleep(5)

# And grab the page HTML source

html_page = wd.page_source

wd.quit()

# Now you can use html_page as you like

print(html_page)

2015-06-17

dkx22

總結

以上是生活随笔為你收集整理的返回动态html,使用硒返回动态页面的html代码的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。