赞
踩
- import requests
-
- BCOOKIES = {
- "s_uid": "xxxxx",
- "s_exp": "14",
- "server_time": "1487816753"
- }
-
- skus = ['103125239']
-
- ssrequest = requests.session()
- requests.utils.add_dict_to_cookiejar(ssrequest.cookies, BCOOKIES)
-
- url="http://www.xxx.com"
- ssrequest.get(url)
jsid = ssrequest.cookies["JSESSIONID"]
- requests.utils.dict_from_cookiejar(cj)
- requests.utils.cookiejar_from_dict(cookie_dict, cookiejar=None, overwrite=True)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。