Commit d4422d11 authored by wang's avatar wang

test

parent 0a55c65f
......@@ -234,14 +234,14 @@ class Reese84ByPass(object):
self.token = response.json()['token']
def _get_cookie(self):
r = requests.post('http://aws-lcc.unififi.com/akamai/gen', json={
'type': "VA",
# 'proxy': 'http://uni00002_custom_zone_US2_sid_85468327_time_5:FdkiGHty9a@us.ipwo.net:7878'
# 'proxy': 'http://user-uni001-region-us-sessid-ussjSyPZaN-sesstime-1-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
'proxy': self.proxy,
}, timeout=600)
print(r.text)
self._session.cookies.update(r.json()['cookies'])
# r = requests.post('http://aws-lcc.unififi.com/akamai/gen', json={
# 'type': "VA",
# # 'proxy': 'http://uni00002_custom_zone_US2_sid_85468327_time_5:FdkiGHty9a@us.ipwo.net:7878'
# # 'proxy': 'http://user-uni001-region-us-sessid-ussjSyPZaN-sesstime-1-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# 'proxy': self.proxy,
# }, timeout=600)
# print(r.text)
# self._session.cookies.update(r.json()['cookies'])
return self.add_header, self._session.cookies.items()
def _test(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment