Forums

Selenium.common.exceptions.WebDriverException

.

from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--headless")
chrome_options.add_argument("--disable-gpu")
browser = webdriver.Chrome(options=chrome_options)
try:
    browser.get("https://www.youtube.com/")
    print("Page title was '{}'".format(browser.title))
finally:
    browser.quit()

Please don't paste raw code without stating the issue and showing errors that you're getting. I guess your problem is that you're using a free account and try to reach non-whitelisted site.