1!pip install selenium
2!apt-get update # to update ubuntu to correctly run apt install
3!apt install chromium-chromedriver
4!cp /usr/lib/chromium-browser/chromedriver /usr/bin
5import sys
6sys.path.insert(0,'/usr/lib/chromium-browser/chromedriver')
7from selenium import webdriver
8chrome_options = webdriver.ChromeOptions()
9chrome_options.add_argument('--headless')
10chrome_options.add_argument('--no-sandbox')
11chrome_options.add_argument('--disable-dev-shm-usage')
12wd = webdriver.Chrome('chromedriver',chrome_options=chrome_options)
13wd.get("https://www.webite-url.com")
14