url = '
https://www2.baidu.com'
options = webdriver.ChromeOptions()
options.add_argument('lang=zh_CN.UTF-8')
options.add_argument("user-agent='Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36'")
browser = webdriver.Chrome(chrome_options=options)
browser.get(url)
cookie1 = {}
.
.
.
browser.add_cookie(cookie1)
.
.
.
time.sleep(3)
browser.refresh()