第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

WebDriverException:消息:服務 /content/chromedriver

WebDriverException:消息:服務 /content/chromedriver

繁華開滿天機 2021-09-01 14:09:45
我試圖使用 Selenium 運行無頭 Chrome 瀏覽器來從網(wǎng)絡上抓取內(nèi)容。我使用 wget 安裝了無頭 Chrome,然后在我當前的文件夾中解壓。!wget "http://chromedriver.storage.googleapis.com/2.25/chromedriver_linux64.zip"!unzip chromedriver_linux64.zip現(xiàn)在當我加載驅(qū)動程序時from selenium.webdriver.chrome.options import Optionsimport os# instantiate a chrome options object so you can set the size and headless preferencechrome_options = Options()chrome_options.add_argument("--headless")chrome_options.add_argument("--window-size=1920x1080")chrome_driver = os.getcwd() +"/chromedriver"driver = webdriver.Chrome(chrome_options=chrome_options,executable_path=chrome_driver)我收到一個錯誤WebDriverException                        Traceback (most recent call last)<ipython-input-67-0aeae0cfd891> in <module>()----> 1 driver = webdriver.Chrome(chrome_options=chrome_options, executable_path=chrome_driver)  2 driver.get("https://www.google.com")  3 lucky_button = driver.find_element_by_css_selector("[name=btnI]")  4 lucky_button.click()  5 /usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py in __init__(self, executable_path, port, chrome_options, service_args, desired_capabilities, service_log_path) 60             service_args=service_args, 61             log_path=service_log_path)---> 62         self.service.start() 63  64         try: /usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in start(self) 84         count = 0 85         while True: ---> 86             self.assert_process_still_running() 87             if self.is_connectable(): 88                 break /usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in assert_process_still_running(self) 97             raise WebDriverException( 98                 'Service %s unexpectedly exited. Status code was: %s' ---> 99                 % (self.path, return_code)100             )101 WebDriverException: Message: Service /content/chromedriver unexpectedly exited. Status code was: -6
查看完整描述

3 回答

  • 3 回答
  • 0 關注
  • 195 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號