from selenium import webdriver # requires the Selenium package # Initialize the ChromeDriver with options to set the profile path options = webdriver.ChromeOptions() options.add_argument("--user-data-dir=./profile_dir") driver = webdriver.Chrome(options=options) # Install the extension in the browser, retrieve its ID, and then close the browser. # Backup ./profile_dir directory.