久久久久久久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>

                            主站蜘蛛池模板: 色婷婷亚洲国产女人的天堂 | 久久久久国产精品一区二区 | 欧美极品视频在线观看 | 成人在线视频免费看 | 久久亚洲欧美日韩精品专区 | 91精品国产综合久久福利软件 | 成人精品国产一区二区4080 | 国产羞羞视频在线观看 | 精品中文字幕视频 | 国产日韩精品一区二区三区 | 国产精品久久久久久久久久久久冷 | 日韩在线看片 | 一级片免费在线观看 | 久草成人网 | 91高清在线 | 国产亚洲一区二区三区在线观看 | 91视频一88av| 成人免费在线网 | 亚洲一区二区视频 | 日韩国产欧美一区 | 91一区二区三区 | 亚洲国产精品久久久久秋霞不卡 | 亚洲另类春色偷拍在线观看 | 日本精品一区二区三区视频 | 午夜小视频在线观看 | 在线免费av观看 | 国精产品一品二品国精在线观看 | 欧美aaaaaaaa | 91精品一区二区三区久久久久 | 亚洲第一天堂无码专区 | 国产一区 日韩 | av黄色网| 毛片在线免费 | 精品欧美一区二区中文字幕视频 | 日本污视频| 国产精品美女久久久久久久网站 | 国内精品久久久久 | 羞羞视频在线观看 | 久久人爽 | 久久久久久看片 | 日韩国产欧美在线观看 |