Commit 4220e565 authored by wang's avatar wang

ws 测试

parent ad5ba47d
......@@ -244,7 +244,7 @@ while True:
selectId = random.choice(list(envs))
# selectId = '197d94c3099d110aef4e0a52'
if usedTime > 0:
if usedTime > 3:
# c = session.get('https://www.westjet.com/assets/app/scripts/swa-common.js').text
# response = session.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
......@@ -264,7 +264,7 @@ while True:
logger.debug('js变化')
js_uri = re.findall('(https://www\.westjet\.com/resources/.+?)"', c1)[0]
if run_js_cache != js_uri:
# if run_js_cache != js_uri:
logger.info(f'get {js_uri}')
run_js_cache = js_uri
# response = requests.post('http://52.52.23.116/tls/forward',
......
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