Open bonfy opened 7 years ago
cookies = driver.get_cookies()
This returns a set of cookie dictionaries for your session.
Next, set those cookies in requests:
s = requests.Session()
for cookie in cookies:
s.cookies.set(cookie['name'], cookie['value'])
load session and cookies from Selenium browser to requests library in Python
selenium login in the website and get the cookie need to load this cookie to requests
selenium cookie type is list[dict]
like: