Service chromedriver unexpectedly exited. Status code was: -9

Issue

I am having so many problems with the webdriver for webscraping with selemium. The chromedriver is already installed and placed in the same folder as python file. All the suggestions that seem to load the the jupyter cell for few seconds are rejected after to this following message: chromedriver cannot opened because the developer cannot be verififed where I used homebrew to download them. Here my code:

from bs4 import BeautifulSoup as soup
import pandas as pd
from selenium import webdriver

my_url='google.com'
driver= webdriver.Chrome()

I am now trying to solve this problem by downloading chromium but I have that status code was 9 error and that pop up telling me that my code cannot be trusted.

Solution

xattr -d com.apple.quarantine /usr/local/bin/chromedriver

/usr/local/bin/chromedriver replace with actual path

Answered By – PDHide

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published