I am using selenium in python collab. But I need to use the same code(I cannot download chromedriver) in my notebook. Here is the code:
!pip install webdriver-manager
!apt update
!apt install chromium-chromedriver
!pip install selenium
options = webdriver.ChromeOptions()
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
# open it, go to a website, and get results
driver = webdriver.Chrome(options=options)
driver.get("https:....")
I thought that this code may works in noteboot, but when I am running in notebook, this give me error
WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Is it possible to run this kind of code in notebook?