Essentially I have a program that makes use of the requests library and its post request. I want to take the cookies of the session after the post request has been called and load them into a webdriver. I was thinking of making use of selenium and a chrome binary but I am confused on how to go about it.
Basically what I have this far.
import requests
url=www.storeUrl.com
session=requests.Session()
data={'utf8': '%E2%9C%93',
'auth': 'oBLLJkW+A2plgT1lUJeKXq7DdqJSniGnZhnSmpuAQOE%3D',
'stat': 'null',
'user': 'zdw7287'}
session.cookies.clear()
response=session.post(url,data=data)
storeResponse=session.request('get','http://www.storeUrl.com')
print storeResponse.cookies
class 'requests.cookies.RequestsCookieJar'>Cookie _store_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRkkiJTBiYmY4MmEzNmRmMjZkMjNhZDdiODg4NWVmYWQ5Y2IzBjsAVEkiB3RqBjsARnsLSSIHcDAGOwBGSXU6CVRpbWUNte4cgFPoSgUKOgtAX3pvbmVJIghFU1QGOwBUOg1uYW5vX251bWkCGgE6DW5hbm9fZGVuaQY6DXN1Ym1pY3JvIgcoIDoLb2Zmc2V0af6wuUkiB3AxBjsARjBJIgdwMgY7AEYwSSIHY3MGOwBGMEkiB2NjBjsARjBJIghpcHMGOwBGWwYiETI0LjkxLjIyNi4zNkkiCWNhcnQGOwBGewdpAph7aQY6C2Nvb2tpZUkiHTEgaXRlbS0tJDM2LS0zMTY0MCwxMjY0MwY7AFRJIhBfY3NyZl90b2tlbgY7AEZJIjFxNHI4QWFUQWNWaXZmY2xIVlNPcHRQeUk2ODF2NTVhbm9pREE1YWFSOHpNPQY7AEY%3D--eea073c1f0a4fd19163e39536e75eed04ab788f9 for www.storeUrl.com/>]>
How would I go about loading this cookie into selenium? Any help would be greatly appreciated.