import time

import requests
import tls_client

session = tls_client.Session(client_identifier='chrome_111')
# session = requests.session()
session.proxies = {
    'http': 'http://127.0.0.1:7890',
    'https': 'http://127.0.0.1:7890',
}
headers = {"x-1itxwo9i-z": "q", "application-channel": "Desktop_Web", "content-type": "application/json", "accept": "application/json", "x-1itxwo9i-a": "fjL8gaGy0_MtxxJKX0eaoWMoaVjSTx07ugHCBucrsurYrv93cRfPsq30ZWaXJL05gp--rMdZOp76_cEyPip3jrcCK7S8KABKmE7QEKHSkwF=c-osHPXAZ74m4br-JNAs8fRwfWmxEaYsDoyxbb3=gD5w4TObUsI0Qe33i5TeQrXxS_WSKLgvOk=xNdAIb8YNlABtlP_WA4GuntknXdgB9w-taf6lGlLXOCjJ-PbYZApWpwj0aeqfBKaAzg=ZxPVDkqwrWXP=mA2d7W54-f_y3zIp_K6G_eNNdRXN2D5lWSOaj0iVpw_V7tm2kr9CVboVjCdTfDl37qO=C11pmyPJrnEo8esQz3Mc4iRsM2IyH8B6bY=yx4FMf4j5_GHCMco2Ps55VrwOk67KFP1q7wQx2RUJRCjcT-w_tLseggPpJ5f4t9jbfFUGuoyfoqeTMF0BIVPvOCxB8PFHkHqCczWp9EaneBOVD03T-xSWODq_CSVgqvRkgMvA4kL=E8zXBwCbAc6Av3l9DxUC4W-6qSYP-syMRrTipPocQCdwlsisAfStfEF2w6SSZO5N7kMe0XrmsuVXIea3eGDTipTT10yF_jFkJ6D_Q6sj9nN5d7XBt_PZVlTvOR9MjndeRBYOOHlkg6lBsS28zNUUs3KWiH0O-tUHF8YQAEQJ88XYya-ikcQ=fr99y54Ap6k2UleKm6yx-6EE0WkbTmfiHrLAiDvnlFQ-vDoXXqLmebX02rP8lVFukzBPLtlxE9DpG2ljK5rCaU2JrzH6MxGbP27MbSPxFY4EwRF1bZNTp-3gqnzRoEjepl78gFNok3_reZQmB_kEHxIB-2KrU=de1U=00EdXzbsaMCmo2jZXbCal2byZk=Uxu_5Z7pyulWIdsCwAzIrpGq9zNX_GgHvNmu99qJfJkHpbkAcGnc=pO1Ofb-gQPbtMORJCa2p7tS5o1aazFeRAkCPjqcEMsCrN6li-swj1i=OCaMAongxxEAi6ROOGkd2DxJgmZrR3WGbwLi=yC=z=T=A2oZ=IDam1W68KnqbGdvQ9JHAEC3RduSO6wOoHjNPm7PMKQbeWDAnqKgf8qTzxgX-2UARUzxz6_6EEQ4Z=C71SNwoIvu2KMHoxQJLxkB4Eqlx6LBzEKeVY2GRaCxMeyo7dA8EWY=QbyWo04CqpPzYUeG6xJUMOR_ElJpwdk4PD8O2CLIXtEbI2uaTJvK865sriZXw2E3zbtG-Axq=9EIqRO2r24ISbjKd9s-Sp5EDcDsqJ5jovy97Q87tnrQfjL8MO_=MZbD_nKfg6E9P7g9GiNC0xYeOrKvb2Pki9R=C3PP7tgCk=U8H7v=7gcUR-aSgSFK9CW36YRUaSuLdoU1s69PYcul3r_=BQreKR5bqkIJKZiwFKBcTJ56cKae_N1bN4pE04VfIq5eFru9s3g06Su5CijDWIHpR350K=rPEix-Y3dEXvEXx=-s31fit8sPDZfPF7N2fXNAt3aJmdlMt1-1Bnda=DeYmi3Fy9QnEMzr=OGJsCoPPP6dyVW1VrUp", "Host": "jbrest.jetblue.com", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36", "x-1itxwo9i-f": "Aw6DjTaLAQAAN3jEKNlGQNQ_PgBrOz-wNUSfbJSyE7ffuUP86xYzwrh3snTtAcEiSo8AAAAAAAAAAAAAAAAAAA==", "x-1itxwo9i-b": "oo7clh", "x-1itxwo9i-c": "AKAejTaLAQAA1xek6e13Y6fKzaoeECPIbjeFa7c2bizODQnp4afGmx6_pYJK", "x-1itxwo9i-d": "ABaAhIDBCKGFgQGAAYIQgISigaIAwBGAzvpCzi_33wenxpsev6WCSgAAAAByzJzLAKdHePfEoc1vP-H32t-FEaY", "booking-application-type": "NGB", "accept-language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7", "origin": "https://www.jetblue.com"}



url = "https://jbrest.jetblue.com/lfs-rwb/outboundLFS"
data = {
    "tripType": "oneWay",
    "from": "LAS",
    "to": "BOS",
    "depart": "2023-05-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
}

while True:
    print(session.post(url,json=data, headers=headers).text)
    time.sleep(1)