import tls_client

session = tls_client.Session(client_identifier='chrome_112')
url = "https://jbrest.jetblue.com/lfs-rwb/outboundLFS"
data = {
    "tripType": "oneWay",
    "from": "LAS",
    "to": "BOS",
    "depart": "2023-09-10",
    "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,
    "isDomestic": False
}
# proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
proxy = 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:10730'
# proxy = 'http://127.0.0.1:7890'
session.proxies = {
    'http': proxy,
    'https': proxy,
}
# print(proxy)

headers = {'Host': 'jbrest.jetblue.com', 'application-channel': 'Desktop_Web', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36', 'booking-application-type': 'NGB', 'content-type': 'application/json', 'accept': 'application/json', 'origin': 'https://www.jetblue.com', 'accept-language': 'en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7', 'x-1itxwo9i-f': 'A07o0m-KAQAAvLNQXGE1DNe5ZQJtnuQNm_AwNeULaanncTR8HcQJ-EsmopuKAcJoklj6K21wobReCOfvosJeCA==', 'x-1itxwo9i-b': '-wji0rp', 'x-1itxwo9i-c': 'AOBD0W-KAQAAoS3d2kJmCpf3c4Au_-kJDnR47ZZPixCQ0WlU1snZKppIdbE3', 'x-1itxwo9i-d': 'ABaAhIjBCKHFgQGAAYIQgISi0aIA5JmBzvpDzz8Aydkqmkh1sTcAAAAAH29cNgAMzy14CdgPSoAaMDzAAfaK', 'x-1itxwo9i-z': 'q', 'x-1itxwo9i-a': '_OctJxDkUUWAgD_f06reQZX-dqg6yeWr7ioJsg4CIa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__sk7QUmq06zRoU8TI9y_5J=BViNgN60D5Ze1gxFwf=WX8A_hClr5ghMZj69hy8uyXoB8GEb=rFF710QiuNWSokjmr_I8yerPTt0XfleT796yAN16K8ooZRTDsxtq9Q4xHms_SsClHLrj3hflH0uwFSNM4uNtGYZbsSLExjl8sXDx=aGl98uH7PfgI=z1ACps9RogHAYeuxrenKpBnExrWlyhd_zmiLgbbROWgr0pM5=pR=RburDiEm5rd8WZrDrzwMCeXlipcgQnAEvnRKlvpuEDirktNSu7H_eZXRGhBYMx4kdPHn=VHGFOe1Joj9Wv3AskCd3zOSwATw6iMPvD6fygzs9Ipgvl9WPL6FgVtgDG-cr-5mc=c9wzALWttz1wFdh4cfVqjJz99cyWKgXGh5KsBZ4WrrsPrfBHuPqZkiSUqnQxKVo6L7Y9FGVAEkbU_gjT=tipssSfn8d3WGWzrOfBwsyfia4C1UxWKQnPwya3A03waxzVmvH5hooGMjNk0CvzZwJUDyDwlp1VoUAycFhUrnyqUqr3oG-8s99l--Rqq'}


response = session.post(url, headers=headers, json=data)

print(response.text)
