Commit 5ef7efcf authored by 王明明's avatar 王明明

初始化

parent e5ed0118
......@@ -2,7 +2,9 @@ import random
import time
import requests
import json
import tls_client
session = tls_client.Session(client_identifier='chrome_112', random_tls_extension_order=True)
headers = {
"Host": "jbrest.jetblue.com",
"application-channel": "Desktop_Web",
......@@ -25,7 +27,7 @@ for i in range(100):
t1 = time.time()
# r = requests.get('http://127.0.0.1:5000/getinfo').json()['message']
r = requests.get('http://127.0.0.1:3001').json()
print(time.time() - t1,r)
print((time.time() - t1) *1000,'ms',r)
# r = {
# "x-1itxwo9i-a": "F7Pgtv2oFJ6SRuiVu1hHGyVjT-E9519oQfgqVh4t7nDGry-oz_jYCRNHUfHRa5UEuU_NCnLpA1UAxW1qJ15de9rk3vXe7e9fliEH2x_f29j_-yESHK-kqhqP47HxOQqYor7JAwTlSZCRVps8dD-Sshe-kxmGeWG==sd1gfTtXb5oOW5innE_63r=6y37msgHgbZsKsr3m-Nqrg8Gs_2zZnjo3fJbU8eOViydixp9pZbueCL5AuZmCx-0Ug_Y8Z12hfhoVKQ2k8sWUWMNYbn1b7___KrGD_6VdHnekp6W0RERVtsILg92QqEg4HZ0=jDX6vAzyNdvzYVfvMYi5MarM1Y=MulNJIyOk9pabwUjA05dTVl_8vQb0YW=QCzLPrykflJmh38xJl__AJ-rMzn86-LxO4WKkE7z0Xig92=p6LyRjUymVqVqG2ibJAHUuEtEUDB947ansxUMnECeDlOOYQdY4ugI5wg4hSU6eF0ItNvniaEx1LydsUPDtJv85MJyhPN0beZa4p0NvQ8X8uX9dXLd7TQ2mvKylBjXh_ktY-Aq=D3S7S7Mm-_2XVqP6La0q3Df1E60QNv9NMYOeM59ZSE5Uz0zFfkVOOS_dYgH5kXKPVIykG0miBDCz4n0qB1UbMkieVLYvAtjztKo1bzTrJvtOr6Y=w3_Knt-OAfM=TEajT3vq9Ls93u6dgEKY-uaz2qznd5Kl7kfdMXLiajx0hO8Zz8f_5gUenqAjLOITx4nAAo-6X-EW6tBBvaqE84Qd3jfn78R4=sIRvi2GnGwdYWlhGNYb471Omw1meParxDs8BCrKP-7hkug7x8pnXsnwWqY2-QnWN4h9HZTm1iEUv1S9nOEDpWYA23V6t7P-UsiIA_CgGjELouWoIyH8zF9odiU4CS-MtQaSAhISprP5khjPvGF6ZKkJvFPptGbB3ekf=IISkQxI-NXDgt6YW4A0x=3U_jsqI2NqqiMgXpZkrRrkn73k3ZZKCOmIz9WmEaoO1AjF-p5=laojmo2NyU50Pk3ezup_m3qJbDMXgkbjekfsSOXAf6xADyNXSv==9vHWewHA3A9VVKftrWrJhYuaBBjx4jEIuXH3XS1iHDC_zzEHfgKbPD4_eHLNl=Kg5EjYsqt7FkQ51_dh7azeiwkfLSniDoYVi9y-NBEALzFMbGXoB2SMgN1QmVfkGm2LJz5Hgy5e7CNiso-iM7Ph8dflu8RVjxvAF_eed231SwmQl8ZBAwMNR1HWq4HSoQigu4GlMRBxz_gQX1uVr_y=StEhSXhXZ1Q_DhPmvu8BO5BgbmjflDX3tRnmw9bW5kplXxAMHNkdAoyKbjXatV1ewFw6AjnE=GgAfaY3NKJMg3n=g_BrZvRwzhZgqqX-nfZlSdAneIbyqlreiJLoRHo734_UsdfY9Y5ejsnedgMHsNb_w=D4F_wDnv83fbZtrn4agkqLHfqxe6=iXzkRXsCC616=7GKBU7S3NJVyjX=TQsoRZPEfKs3F-37GbGwCoE-nDSeRiUWNjCo6rxj4DBuSsQKV=uhzvyaiNk-Qt=UlXQ3pG4j=lJ8=ovKSFQ_qSooL06-zk5oXJxe9u1Q1X5wKkE6iVEDWPl_EWd93MuVeheO2h7asXj3hzXsmXqG2G6r6bZPQhFW5I1_qmiOsD=hSfH8p7K5FPLTY=yaVDWSGHVWpkyt9CdvwE_aOiDwaCUT=tSqAOvFd6s6nj4__RavtRxtFL",
# "x-1itxwo9i-b": "qi0wsc",
......@@ -42,7 +44,7 @@ for i in range(100):
"tripType": "oneWay",
"from": "LAS",
"to": "BOS",
"depart": "2023-07-10",
"depart": "2023-09-10",
"cabin": "economy",
"refundable": False,
"dates": {
......@@ -64,12 +66,13 @@ for i in range(100):
"isDomestic": False
}
proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000,11149))}'
proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
print(proxy)
response = requests.post(url, headers=headers, json=data, proxies={
# proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
session.proxies={
'http':proxy,
'https':proxy,
})
}
print(proxy)
response = session.post(url, headers=headers, json=data)
print(response.text)
if response.status_code == 200:
......@@ -78,7 +81,7 @@ for i in range(100):
# 'type':'headerB6'
# })
uri = 'http://lcc.unififi.com/header/add'
uri = 'http://ymx-lcc.unififi.com/header/add'
r = requests.post(uri, json={
'brush_fromto': 'LAS-BOS',
'brush_fromdate': '2023-05-22',
......
......@@ -4,14 +4,14 @@ var idx = 0;
var arrs = {};
console.time("处理完毕,耗时");
Date.now = function now() { return 1685096207545 };
Date.parse = function () { return 1685096207545 };
Date.prototype.valueOf = function () { return 1685096207545 };
Date.prototype.getTime = function () { return 1685096207545 };
Date.prototype.toString = function () { return 1685096207545 };
Performance.prototype.now = function now(){ return Number('1685096207545'.slice(8))}
Math.random = function random() { return 0.08636862211354912 };
// Date.now = function now() { return 1685096207545 };
// Date.parse = function () { return 1685096207545 };
// Date.prototype.valueOf = function () { return 1685096207545 };
// Date.prototype.getTime = function () { return 1685096207545 };
// Date.prototype.toString = function () { return 1685096207545 };
// Performance.prototype.now = function now(){ return Number('1685096207545'.slice(8))}
//
// Math.random = function random() { return 0.08636862211354912 };
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
debug = false;
dtavm = {}
......@@ -8821,7 +8821,6 @@ console.log('结束times', times)
const express = require('express')
const app = express()
const port = 3001
app.get('/', (req, res) => {
console.log('当前times', times)
......@@ -8835,8 +8834,9 @@ app.get('/', (req, res) => {
res.send(JSON.stringify(xhr.headers))
})
const port = 3001
// app.listen(port, () => {
// console.log(`Example app listening on port ${port}`)
// })
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
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