I want to use my local chrome with selenium, but every time I just get a new chrome without any cookies
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
option = webdriver.ChromeOptions()
option.add_argument(r'--user-data-dir=/Users/mac/Library/Application Support/Google/Chrome/Default')
driver = webdriver.Chrome(chrome_options=option, executable_path="/usr/local/bin/chromedriver")
driver.get("https://twitter.com/")
- my chrome user data dir
I want to use default chrome with selenium, then how to setup chrome options?
Please help, thanks!
