Service chromedriver unexpectedly exited. Status code was: -9

Viewed 1932

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.

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

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

Related