久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='QFIJr'></tfoot>
    • <bdo id='QFIJr'></bdo><ul id='QFIJr'></ul>
      1. <small id='QFIJr'></small><noframes id='QFIJr'>

      2. <i id='QFIJr'><tr id='QFIJr'><dt id='QFIJr'><q id='QFIJr'><span id='QFIJr'><b id='QFIJr'><form id='QFIJr'><ins id='QFIJr'></ins><ul id='QFIJr'></ul><sub id='QFIJr'></sub></form><legend id='QFIJr'></legend><bdo id='QFIJr'><pre id='QFIJr'><center id='QFIJr'></center></pre></bdo></b><th id='QFIJr'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='QFIJr'><tfoot id='QFIJr'></tfoot><dl id='QFIJr'><fieldset id='QFIJr'></fieldset></dl></div>

      3. <legend id='QFIJr'><style id='QFIJr'><dir id='QFIJr'><q id='QFIJr'></q></dir></style></legend>

        WebDriverException:消息:“chromedriver"可執行文件需

        WebDriverException: Message: #39;chromedriver#39; executable needs to be in PATH while setting UserAgent through Selenium Chromedriver python(WebDriverException:消息:“chromedriver可執行文件需要在 PATH 中,同時通過 Selenium
        <legend id='tG4bD'><style id='tG4bD'><dir id='tG4bD'><q id='tG4bD'></q></dir></style></legend>
            <tfoot id='tG4bD'></tfoot>
              <tbody id='tG4bD'></tbody>

            1. <i id='tG4bD'><tr id='tG4bD'><dt id='tG4bD'><q id='tG4bD'><span id='tG4bD'><b id='tG4bD'><form id='tG4bD'><ins id='tG4bD'></ins><ul id='tG4bD'></ul><sub id='tG4bD'></sub></form><legend id='tG4bD'></legend><bdo id='tG4bD'><pre id='tG4bD'><center id='tG4bD'></center></pre></bdo></b><th id='tG4bD'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tG4bD'><tfoot id='tG4bD'></tfoot><dl id='tG4bD'><fieldset id='tG4bD'></fieldset></dl></div>

              <small id='tG4bD'></small><noframes id='tG4bD'>

                  <bdo id='tG4bD'></bdo><ul id='tG4bD'></ul>

                  本文介紹了WebDriverException:消息:“chromedriver"可執行文件需要在 PATH 中,同時通過 Selenium Chromedriver python 設置 UserAgent的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我是網絡抓取的新手,我正在嘗試使用以下代碼來修改我的用戶代理:

                  I'm a newbie in webscraping, I'm trying to modify my user agent using these lines :

                  from selenium import webdriver
                  chrome_path = r'C:UsersDesktopchromedriver_win32chromedriver.exe'   
                  driver = webdriver.Chrome(chrome_path)
                  options = webdriver.ChromeOptions()
                  options.add_argument('user-agent = Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36')
                  driver = webdriver.Chrome(chrome_options=options)
                  

                  環境變量中的路徑沒有問題,但我一直收到此錯誤消息:

                  The path in environment variable is ok but I keep having this error message:

                  File "C:UsersAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdrivercommonservice.py", line 76, in startstdin=PIPE)
                  File "C:UsersAppDataLocalProgramsPythonPython36-32libsubprocess.py",line 709, in __init__restore_signals, start_new_session)
                  File "C:UsersAppDataLocalProgramsPythonPython36-32libsubprocess.py",line 997, in _execute_child startupinfo).
                  During handling of the above exception, another exception occurred:
                  Traceback (most recent call last):
                  File "C:UserssafiaAppDataLocalProgramsPythonPython36-32Test 3- User Agent.py", line 9, in <module>
                  driver = webdriver.Chrome(chrome_options=options)
                  File "C:UserssafiaAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriverchromewebdriver.py", line 68, in __init__
                  self.service.start()
                  File "C:UserssafiaAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdrivercommonservice.py", line 83, in start
                  os.path.basename(self.path), self.start_error_message)
                  selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
                  

                  你能幫我解決這個問題嗎?

                  Can you please help me fix this issue?

                  推薦答案

                  這個錯誤信息...

                  selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH
                  

                  ...暗示 ChromeDriver環境變量 內的 PATH 變量中指定的位置中找不到.

                  ...implies that the ChromeDriver was not found within the locations specified within PATH variable within Environment Variables.

                  您需要傳遞 Key executable_path 以及 Value 引用 ChromeDriver 的絕對路徑連同 ChromeOptions 對象作為參數,同時初始化 WebDriverWebBrowser,如下所示:

                  You need to pass the Key executable_path along with the Value referring to the absolute path of the ChromeDriver along with the ChromeOptions object as an argument while initializing the WebDriver and WebBrowser as follows :

                  from selenium import webdriver
                  
                  options = webdriver.ChromeOptions()
                  options.add_argument('user-agent = Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36')
                  driver = webdriver.Chrome(chrome_options=options, executable_path=r'C:UsersDesktopchromedriver_win32chromedriver.exe')
                  driver.get('https://www.google.co.in')
                  

                  這篇關于WebDriverException:消息:“chromedriver"可執行文件需要在 PATH 中,同時通過 Selenium Chromedriver python 設置 UserAgent的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                • <i id='9CFcx'><tr id='9CFcx'><dt id='9CFcx'><q id='9CFcx'><span id='9CFcx'><b id='9CFcx'><form id='9CFcx'><ins id='9CFcx'></ins><ul id='9CFcx'></ul><sub id='9CFcx'></sub></form><legend id='9CFcx'></legend><bdo id='9CFcx'><pre id='9CFcx'><center id='9CFcx'></center></pre></bdo></b><th id='9CFcx'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='9CFcx'><tfoot id='9CFcx'></tfoot><dl id='9CFcx'><fieldset id='9CFcx'></fieldset></dl></div>

                  <small id='9CFcx'></small><noframes id='9CFcx'>

                      <tbody id='9CFcx'></tbody>
                      • <legend id='9CFcx'><style id='9CFcx'><dir id='9CFcx'><q id='9CFcx'></q></dir></style></legend>
                        • <tfoot id='9CFcx'></tfoot>
                            <bdo id='9CFcx'></bdo><ul id='9CFcx'></ul>

                            主站蜘蛛池模板: 久久亚洲一区 | 国产真实精品久久二三区 | 一区二区三区免费 | 国产高清在线精品一区二区三区 | 欧美福利影院 | 欧美日韩成人影院 | 欧美三级在线 | 国产精品乱码一区二三区小蝌蚪 | 99久久精品国产一区二区三区 | 国产在线精品一区二区三区 | 中文字幕第二十页 | 人人爽人人爽人人片av | 日本精品在线一区 | 久久久久一区 | 国产yw851.c免费观看网站 | 欧美精品一区二区三区在线 | 国产性生活一级片 | 久久久一二三区 | 91视频在线观看 | 伊人网在线看 | 久久久久久国产精品免费 | 精品丝袜在线 | 一区二区三区不卡视频 | 91精品国产91久久久久久吃药 | 欧美成人精品一区二区三区 | 狠狠天天| 作爱视频免费观看 | 国产精品一区二区免费 | 欧美日日 | 日韩成人在线电影 | 国产精品.xx视频.xxtv | 色综合天天综合网国产成人网 | 国产精品九九九 | 久久久久中文字幕 | 午夜小电影 | 婷婷丁香综合网 | 在线免费观看日本视频 | 日韩高清一区 | 久久国产精品视频免费看 | 久久久999国产精品 中文字幕在线精品 | 一区二区三区四区五区在线视频 |