from selenium import webdriver from selenium.webdriver.chrome.options import Options opt = webdriver.ChromeOptions() opt.add_argument("user-data-dir=C:UsersBarAppDataLocalGoogleChromeUser Data")