Commit 12f12ebe authored by wang's avatar wang

ws 测试

parent bfdccaab
......@@ -241,7 +241,7 @@ while True:
selectId = random.choice(list(envs))
# selectId = '197d94c3099d110aef4e0a52'
if usedTime > 5:
if usedTime > 0:
# c = session.get('https://www.westjet.com/assets/app/scripts/swa-common.js').text
response = requests.post('http://52.52.23.116/tls/forward',
json=dict(url='https://www.westjet.com/resources/js/wj_common.js', headers=headers, method="GET", proxy=proxy, debug=True
......@@ -250,6 +250,8 @@ while True:
c1 = response.json()['text']
m5 = md5(c1)
ck = response.json()['cookies']['z0t0U8fo']
logger.debug(f'ck={ck}')
if m5 != lastHash:
lastHash = m5
usedTime = 0
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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