I am using selenium python in Ubuntu.
chromedriver = '/usr/local/bin/chromedriver'
chrome_options = webdriver.ChromeOptions()
driver = webdriver.Chrome(executable_path=chromedriver, chrome_options=chrome_options)
How to set user-data-dir in chrome_options in selenium python in ubuntu ?