Skip to content

Instantly share code, notes, and snippets.

View jiahaoli57's full-sized avatar
😆
Focusing

Jiahao Li jiahaoli57

😆
Focusing
View GitHub Profile
@jiahaoli57
jiahaoli57 / selenium.py
Created September 24, 2021 12:38 — forked from korakot/selenium.py
Use selenium in Colab
# install chromium, its driver, and selenium
!apt update
!apt install chromium-chromedriver
!pip install selenium
# set options to be headless, ..
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')