
Python
1
Вклад в тег
options = webdriver.ChromeOptions()
options.add_argument('headless')
options.add_argument('user-data-dir=C:\\Users\\Name_Profile\\AppData\\Local\\Google\\Chrome\\User Data')
browser = webdriver.Chrome(executable_path=path_to_driver, options=options)
browser.get(url)