国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【python selenium報(bào)錯(cuò)】selenium.common.exceptions.WebDriverException: Message: <html> 三種解決方案!

這篇具有很好參考價(jià)值的文章主要介紹了【python selenium報(bào)錯(cuò)】selenium.common.exceptions.WebDriverException: Message: <html> 三種解決方案!。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

解決selenium的webDriver和chrom不兼容的報(bào)錯(cuò)

selenium.common.exceptions.WebDriverException: Message:

【python selenium報(bào)錯(cuò)】selenium.common.exceptions.WebDriverException: Message: <html> 三種解決方案!在運(yùn)行python代碼時(shí)遇到該問(wèn)題解決方案三種(我是第三種才解決的,總結(jié)一句話(huà):是代理ip的問(wèn)題★★★):

  • 一、重新安裝selenium,可能是缺少某些文件
pip uninstall selenium 
pip install selenium
  • 二、查看chrom的版本,在chrom驅(qū)動(dòng)的官方網(wǎng)站中下載安裝適配的版本(版本接近即可),并將其配置到系統(tǒng)環(huán)境下,具體步驟如下。
    2.1 查看自己的chrom的版本
    【python selenium報(bào)錯(cuò)】selenium.common.exceptions.WebDriverException: Message: <html> 三種解決方案!2.2 在chrom驅(qū)動(dòng)的官方網(wǎng)站中選擇合適的驅(qū)動(dòng)版本,下面兩個(gè)版本都可以,只要接近就行,任意點(diǎn)擊一個(gè)即可
    【python selenium報(bào)錯(cuò)】selenium.common.exceptions.WebDriverException: Message: <html> 三種解決方案!2.3 以110.0.5481.77 為例,選擇合適的版本下載,我是windows,因此,下載win32版本的驅(qū)動(dòng)
    【python selenium報(bào)錯(cuò)】selenium.common.exceptions.WebDriverException: Message: <html> 三種解決方案!2.4 解壓后是一個(gè)exe文件以及一個(gè)LICENSE,將其解壓到合適的位置
    【python selenium報(bào)錯(cuò)】selenium.common.exceptions.WebDriverException: Message: <html> 三種解決方案!2.5 配置環(huán)境變量
    【python selenium報(bào)錯(cuò)】selenium.common.exceptions.WebDriverException: Message: <html> 三種解決方案!
    【python selenium報(bào)錯(cuò)】selenium.common.exceptions.WebDriverException: Message: <html> 三種解決方案!2.6 成功配置完后重新運(yùn)行

  • 三、ip代理的問(wèn)題,需要把ip代理注釋掉,很玄學(xué)!
    【python selenium報(bào)錯(cuò)】selenium.common.exceptions.WebDriverException: Message: <html> 三種解決方案!

希望能夠幫到你!文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-512936.html

到了這里,關(guān)于【python selenium報(bào)錯(cuò)】selenium.common.exceptions.WebDriverException: Message: <html> 三種解決方案!的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶(hù)投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 使用selenium時(shí)遇到的報(bào)錯(cuò)selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1詳解及解決方法詳解

    使用selenium時(shí)遇到的報(bào)錯(cuò)selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1詳解及解決方法詳解

    在開(kāi)始之前,分享一下使用selenium常遇到的幾個(gè)問(wèn)題和報(bào)錯(cuò): 1.首先就是版本問(wèn)題的報(bào)錯(cuò):selenium.common.exceptions.NoSuchWindowException: Message:? ? no such window: target window already closed。遇到這種情況,就是chromedriver的版本和Chrome版本不對(duì)應(yīng)造成的,解決方法是: 首先要打開(kāi)Chrome,在右

    2024年02月12日
    瀏覽(33)
  • python-selenium ”selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find

    1、確認(rèn)當(dāng)前的Google Chrome版本號(hào)與chromedriver版本號(hào)一致,如果不一致,到http://chromedriver.storage.googleapis.com/index.html下載與當(dāng)前chrome瀏覽?器對(duì)應(yīng)的驅(qū)動(dòng)。 http://selenium-release.storage.googleapis.com/index.html?selenium下載地址; 2、將chromedriver.exe文件放入python的scripts目錄,并將該scripts目錄

    2024年02月04日
    瀏覽(24)
  • Python對(duì)與測(cè)試HTML文件,出現(xiàn)selenium.common.exceptions.WebDriverException: Message: Reached error page: about

    Python對(duì)與測(cè)試HTML文件,出現(xiàn)selenium.common.exceptions.WebDriverException: Message: Reached error page: about

    在測(cè)試 html文件 是出現(xiàn):selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=fileNotFoundu=file%3A.....報(bào)錯(cuò) 如下: Firefox上也出現(xiàn)了一下情況 ? 我查了許多網(wǎng)上的資料,也看出個(gè)所以然,所以琢磨了一下,若是把文件的路徑改成沒(méi)有中文的呢,然后結(jié)果還是如此

    2024年02月15日
    瀏覽(20)
  • 解決:selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ execu

    解決:selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ execu

    運(yùn)行爬蟲(chóng)代碼出現(xiàn)上面的bug bug詳細(xì)信息如下 ?解決方法 如下 1.先打開(kāi)chrome 輸入 “chrome://version/”來(lái)查看chrome版本 如圖我的是96 ? 2.然后訪(fǎng)問(wèn)此網(wǎng)站??http://chromedriver.storage.googleapis.com/index.html?? 然后選擇合適版本的driver? ?我這邊是windows版本的系統(tǒng)所以下載? win32版本的壓縮

    2024年02月16日
    瀏覽(24)
  • selenium.common.exceptions.WebDriverException: Message: chrome not reachable解決方法

    在 python上使用 selenium 。 一開(kāi)始還算順利,但是隨著反復(fù)執(zhí)行,處理量變多了。 如果一直等待,最終會(huì)出現(xiàn)無(wú)法訪(fǎng)問(wèn) chrome 的錯(cuò)誤。 已經(jīng)添加了driver.quit()。 引入一個(gè)新的函數(shù),檢查是否有 chrome 驅(qū)動(dòng)程序正在運(yùn)行,并打印提示,如果有,則殺死所有chrome 驅(qū)動(dòng)程序。 相當(dāng)于在

    2024年02月16日
    瀏覽(19)
  • 已解決selenium.common.exceptions.WebDriverException: Message: invalid session id

    已解決selenium.common.exceptions.WebDriverException: Message: invalid session id

    已解決selenium循環(huán)翻頁(yè)拋出selenium.common.exceptions.WebDriverException: Message: invalid session id的正確解決方法,親測(cè)有效?。?! 粉絲群里面的一個(gè)小伙伴遇到問(wèn)題跑來(lái)私信我,想用selenium循環(huán)翻頁(yè),但是發(fā)生了報(bào)錯(cuò)(當(dāng)時(shí)他心里瞬間涼了一大截,跑來(lái)找我求助,然后順利幫助他解決了,

    2023年04月08日
    瀏覽(27)
  • 【selenium.common.exceptions.WebDriverException: Message: ‘geckodriver‘ ...】【 [WinError 2] 系統(tǒng)找不到指定的文】

    【selenium.common.exceptions.WebDriverException: Message: ‘geckodriver‘ ...】【 [WinError 2] 系統(tǒng)找不到指定的文】

    目錄 一、問(wèn)題描述 二、問(wèn)題分析 1、異常一: 2、異常二: 3、分析 三、解決方法 1、geckodriver的下載 2、檢查代碼 四、驗(yàn)證 前言 ????????Selenium的腳本可以控制瀏覽器進(jìn)行操作,可以實(shí)現(xiàn)多個(gè)瀏覽器的調(diào)用,包括 IE (7 、 8 、 9 、 10 、 11 )、 Firefox 、 Safari 、 Google Chr

    2024年02月15日
    瀏覽(18)
  • selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT

    selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT

    最近需要使用一下selenium,剛運(yùn)行就報(bào)錯(cuò)了。。。 前提準(zhǔn)備: 1.安裝selenium 2.下載chrome對(duì)應(yīng)版本的chromedriver 代碼就是一個(gè)簡(jiǎn)單的demo: 運(yùn)行報(bào)錯(cuò): 網(wǎng)上說(shuō)要把chromedriver放到環(huán)境變量,放進(jìn)去還是報(bào)錯(cuò)??! 然后就直接看源碼吧: 這個(gè)過(guò)程很繁瑣,很枯燥,嫌廢話(huà)連篇請(qǐng)直接翻到文

    2024年01月20日
    瀏覽(15)
  • selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PAT

    selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PAT

    selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH. Please see。。。 1. 查看本機(jī)Chrome瀏覽器版本 2. 去下載chromedriver 下載地址1(我登不上去): chromedriver.storage.googleapis.com/index.html 下載地址2: https://registry.npmmirror.com/binary.html?path=chromedriver/ 找到對(duì)

    2024年02月09日
    瀏覽(28)
  • selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary解決合集

    selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary解決合集

    由于pycharm找不到chrome瀏覽器或者是chromedriver瀏覽器驅(qū)動(dòng)。 一.下載對(duì)應(yīng)版本Chromedriver放到python的安裝路徑下 1.查看谷歌瀏覽器的版本 ? 2. 瀏覽器中打開(kāi):https://npm.taobao.org/mirrors/chromedriver/并下載對(duì)應(yīng)步驟1版本的瀏覽器驅(qū)動(dòng), 一般只需要大版本對(duì)應(yīng)即可, 3.找到python和chrome的

    2024年02月14日
    瀏覽(50)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包