Commit e41725e5 authored by wang's avatar wang

环境兼容

parent cd84d26f
No preview for this file type
......@@ -90,7 +90,7 @@ for i in range(100):
"tripType": "oneWay",
"from": "LAS",
"to": "BOS",
"depart": "2023-09-10",
"depart": "2023-10-10",
"cabin": "economy",
"refundable": False,
"dates": {
......@@ -113,8 +113,8 @@ for i in range(100):
}
proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{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://127.0.0.1:7890'
# proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
proxy = 'http://127.0.0.1:7890'
session.proxies = {
'http': proxy,
'https': proxy,
......@@ -123,6 +123,7 @@ for i in range(100):
response = session.post(url, headers=headers, json=data)
# print(response.text)
print(response.status_code)
if response.status_code == 200:
res = db.env_shape.update_one(
{'_id': ObjectId(selectId)},
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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