Commit 6c53c744 authored by wang's avatar wang

111

parent 632dcef1
...@@ -108,9 +108,9 @@ while True: ...@@ -108,9 +108,9 @@ while True:
proxy2 = f'http://uni00001_custom_zone_US_sid_67336718_time_5:q39CEBTs5A@us.foxyip.com:7778' proxy2 = f'http://uni00001_custom_zone_US_sid_67336718_time_5:q39CEBTs5A@us.foxyip.com:7778'
# proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@198.147.25.26:{int(random.randint(10000, 11149))}' # proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@198.147.25.26:{int(random.randint(10000, 11149))}'
# proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600' # proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
proxy = random.choice([proxy1, proxy]) # proxy = random.choice([proxy1, proxy])
tlsV = f'chrome_{random.randint(105, 113)}' tlsV = f'chrome_{random.randint(105, 113)}'
tlsV = 'chrome_112' tlsV = 'chrome_117'
session = tls_client.Session(tlsV) session = tls_client.Session(tlsV)
session.timeout_seconds = 15 session.timeout_seconds = 15
# session = requests.session() # session = requests.session()
...@@ -154,7 +154,7 @@ while True: ...@@ -154,7 +154,7 @@ while True:
xhr.send(`{"tripType":"oneWay","from":"ZLA","to":"NAS","depart":"2023-04-11","cabin":"economy","refundable":false,"dates":{"before":"3","after":"3"},"pax":{"ADT":1,"CHD":0,"INF":0,"UNN":0},"redempoint":false,"pointsBreakup":{"option":"","value":0},"isMultiCity":false}`) xhr.send(`{"tripType":"oneWay","from":"ZLA","to":"NAS","depart":"2023-04-11","cabin":"economy","refundable":false,"dates":{"before":"3","after":"3"},"pax":{"ADT":1,"CHD":0,"INF":0,"UNN":0},"redempoint":false,"pointsBreakup":{"option":"","value":0},"isMultiCity":false}`)
xhr.setRequestHeader('user-agent', ENV.navigatorparams.useragent) xhr.setRequestHeader('user-agent', ENV.navigatorparams.useragent)
print(JSON.stringify(xhr.headers)) print(JSON.stringify(xhr.headers))
_process.exit(0) // _process.exit(0)
setTimeout(r=> { setTimeout(r=> {
var var
...@@ -170,7 +170,7 @@ setTimeout(r=> { ...@@ -170,7 +170,7 @@ setTimeout(r=> {
xhr.setRequestHeader('user-agent', ENV.navigatorparams.useragent) xhr.setRequestHeader('user-agent', ENV.navigatorparams.useragent)
print(JSON.stringify(xhr.headers)) print(JSON.stringify(xhr.headers))
_process.exit(0) _process.exit(0)
}, 5000) }, 1000)
''' '''
) )
......
No preview for this file type
This diff is collapsed.
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