Horje
running selenium on google colab Code Example
running selenium on google colab
!pip install selenium
!apt-get update # to update ubuntu to correctly run apt install
!apt install chromium-chromedriver
!cp /usr/lib/chromium-browser/chromedriver /usr/bin
import sys
sys.path.insert(0,'/usr/lib/chromium-browser/chromedriver')
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
wd = webdriver.Chrome('chromedriver',chrome_options=chrome_options)
wd.get("https://www.webite-url.com")




Python

Related
write string to file python Code Example write string to file python Code Example
is pythin a real coding language Code Example is pythin a real coding language Code Example
unix to date python Code Example unix to date python Code Example
esp32 micropython timer Code Example esp32 micropython timer Code Example
accuracy score sklearn syntax Code Example accuracy score sklearn syntax Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7