Commit 5fc497ee authored by wang's avatar wang

f9

parent b9c264b6
import json
import tls_client
sess = tls_client.Session(client_identifier='chrome_120', random_tls_extension_order=True)
sess.proxies = {
'http': 'http://127.0.0.1:8890',
'https': 'http://127.0.0.1:8890',
}
import requests
headers = {
"Host": "booking.flyfrontier.com",
"sec-ch-ua": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"macOS\"",
"upgrade-insecure-requests": "1",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"sec-fetch-site": "same-site",
"sec-fetch-mode": "navigate",
"sec-fetch-user": "?1",
"sec-fetch-dest": "document",
"accept-language": "en",
'cookie': 'c_uuid=25010157537361200005373651080192024; _gcl_au=1.1.448761603.1713336291; pxcts=fdf235a6-fc85-11ee-b4fb-43395248b920; _pxvid=fdf2276a-fc85-11ee-b4fb-5d3e2a270b62; _gid=GA1.2.1259122164.1713336292; cjConsent=MHxOfDB8Tnww; cjUser=e6f18d68-13e1-4c89-ab1c-23c5b027344b; cjLiveRampLastCall=2024-04-17T06:44:53.243Z; wisepops_visits=%5B%222024-04-17T06%3A44%3A50.744Z%22%5D; _pin_unauth=dWlkPVpqUm1NRFU0T0dJdE16TTBaaTAwTVdNd0xXSXhORGt0WXpBMU5HSTFORE0yTmpabQ; ORA_FPC=id=f6eb1aeb-7de0-4708-83ad-de8bed215c46; WTPERSIST=; _gat_UA-2678252-1=1; _ga_XXXX=GS1.1.1713336291.1.1.1713336405.0.0.265826372; _ga_P2WLKWBNNW=GS1.1.1713336291.1.1.1713336405.37.0.0; _ga=GA1.2.1340612058.1713336291; _rdt_uuid=1713336292452.15e1b8f2-c4d3-410b-aea6-4ce839505e3b; _px2=eyJ1IjoiNDE3OGIxMzAtZmM4Ni0xMWVlLWIwYmMtNTE4NjNiYjQxZTViIiwidiI6ImZkZjIyNzZhLWZjODUtMTFlZS1iNGZiLTVkM2UyYTI3MGI2MiIsInQiOjYyMDIzMzg4MDAwNywiaCI6ImI3MDFlN2YzZGQzYzExMTQwYjRlM2I3MDcxZTc2MjE1YTc1NTJhOTU0ZDQwYTQyMWEwM2UxOWNjYWNjMWEwMDQifQ==; wisepops=%7B%22popups%22%3A%7B%22483108%22%3A%7B%22dc%22%3A1%2C%22d%22%3A1713336297152%2C%22cl%22%3A1%7D%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A3%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D; wisepops_visitor=%7B%22P9wqzAW4cp%22%3A%22cbc6973e-9403-43f5-af1f-feacc5315551%22%7D; wisepops_session=%7B%22arrivalOnSite%22%3A%222024-04-17T06%3A44%3A50.744Z%22%2C%22mtime%22%3A1713336408398%2C%22pageviews%22%3A4%2C%22popups%22%3A%7B%22483108%22%3A3%7D%2C%22bars%22%3A%7B%7D%2C%22sticky%22%3A%7B%7D%2C%22countdowns%22%3A%7B%7D%2C%22src%22%3Anull%2C%22utm%22%3A%7B%7D%2C%22testIp%22%3Anull%7D'
}
url = "https://booking.flyfrontier.com/Flight/InternalSelect"
params = {
"o1": "ATL",
"d1": "AUS",
"dd1": "Apr 17 2024",
"ADT": "1",
"mon": "true",
"promo": ""
}
response = sess.get(url, headers=headers, params=params, allow_redirects=True)
print(response.text)
print(response)
\ No newline at end of file
......@@ -6006,8 +6006,9 @@ export class PxEnv {
try {
let m = this.ENV
for (var t = 0; t < Object.keys(m["plugins"])["length"] && t < 30; t++) {
for (var n = m["plugins"][t], r = n["name"] + "::" + n["description"], a = 0; a < n["length"]; a++) {
r = r + "::" + n[a]["type"] + "~" + n[a]["suffixes"];
var n = m["plugins"][t], r = n["name"] + "::" + n["description"];
for (var a = 0; a < n["length"]; a++) {
r = r + "::" +(n[a]?? n['field'+(a+1)])["type"] + "~" + (n[a]?? n['field'+(a+1)])["suffixes"];
}
e["push"](r);
}
......
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