关于网友提出的“ webdriver爬虫启动chrome浏览器报错”问题疑问,本网通过在网上对“ webdriver爬虫启动chrome浏览器报错”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题: webdriver爬虫启动chrome浏览器报错
描述:webdriver爬虫chrome
使用python的webdriver爬取QQ空间,遇到如下问题:
启动代码:
executable_path ="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
os.environ["webdriver.chrome.driver"] = executable_path
options = webdriver.ChromeOptions()
options.add_argument("--user-data-dir="+r"C:/Users/Administrator/AppData/Local/Google/Chrome/User Data/")
driver = webdriver.Chrome(executable_path,chrome_opti />
wait = ui.WebDriverWait(driver,10)
报错信息
selenium.common.exceptions.WebDriverException: Message: Service C:\Program Files (x86)\Google\Chrome\Application\chrome.exe unexpectedly exited. Status code was: 0
万能的吧友。。。求助。。。
以上介绍了“ webdriver爬虫启动chrome浏览器报错”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/3146089.html