webdriver爬虫启动chrome浏览器报错
魔鬼_ 2016-07-10 09:57:17 使用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_options=options)
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
万能的吧友。。。求助。。。