import tls_client

session = tls_client.Session(client_identifier='chrome_112')
session.proxies = {
    'http': 'http://127.0.0.1:7890',
    'https': 'http://127.0.0.1:7890',
}



headers = {
    "authority": "booking.flyfrontier.com",
    "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",
    "accept-language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6",
    "cache-control": "no-cache",
    "pragma": "no-cache",
    "sec-ch-ua": "\"Google Chrome\";v=\"117\", \"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"117\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"macOS\"",
    "sec-fetch-dest": "document",
    "sec-fetch-mode": "navigate",
    "sec-fetch-site": "same-origin",
    "sec-fetch-user": "?1",
    "upgrade-insecure-requests": "1",
    "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
}
cookies = {
    "_pxhd": "22d212df719dee891560a19dd1fcf693763a5313e14dceaceeffeadd74c1ed9a:a668952e-76f1-11ee-86c3-0367edfc9861",
    "ASP.NET_SessionId": "jeqduql3iyaomqpqad3blyfw",
    "pxcts": "c601a88a-76f9-11ee-a217-123ca718c5c4",
    "_pxvid": "c60194cc-76f9-11ee-a217-d27f573e9749",
    "_gcl_au": "1.1.172898835.1698653064",
    "_gid": "GA1.2.1894558624.1698653067",
    "_pin_unauth": "dWlkPU1URXhNVFZsTWpBdE9ETTFOQzAwWVdJeExXRmhNVE10TXpobFpUVTRNR0pqTnpnMw",
    "wisepops": "%7B%22csd%22%3A1%2C%22popups%22%3A%7B%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A24%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D",
    "_tt_enable_cookie": "1",
    "_ttp": "_fzLoXXlmYl-CRlM2RC1A9KkABZ",
    "_fbp": "fb.1.1698653068494.1798735043",
    "_up": "1.2.744732504.1698653069",
    "__RequestVerificationToken": "SiL39TrXCORrOWYMGAn1m9r_PJmUiaCgG2cBScexdb-e38HOXLlF5mufYteJfduU2GuMiP1lLsdu2s8E2DoMspPe5YlaeF2W0mUMzrXyxBslr1p1eWNnlR7IJSs9tJv1m-JWjQ2",
    "dtCookie": "v_4_srv_-2D67_sn_C7GPTED5QRUELR1DT5M6B2TGBJC1TIGH",
    "rxVisitor": "16986574689549LQJ2AUNM8FF9OIQ2DTEJ0CL31BEBTJC",
    "ORA_FPC": "id=d20240f3-351a-458f-a5a2-3e2173f3b116",
    "WTPERSIST": "sha_hash=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "_gat_UA-2678252-1": "1",
    "wisepops_visits": "%5B%222023-10-30T09%3A22%3A07.664Z%22%2C%222023-10-30T09%3A21%3A52.139Z%22%2C%222023-10-30T08%3A04%3A24.343Z%22%5D",
    "wisepops_session": "%7B%22arrivalOnSite%22%3A%222023-10-30T09%3A22%3A07.664Z%22%2C%22mtime%22%3A1698657728144%2C%22pageviews%22%3A1%2C%22popups%22%3A%7B%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",
    "_ga_XXXX": "GS1.1.1698657468.2.1.1698657741.0.0.0",
    "_ga_P2WLKWBNNW": "GS1.1.1698657468.2.1.1698657741.31.0.0",
    "_ga": "GA1.2.822368327.1698653065",
    "_uetsid": "326c5540770511ee94eb6568dc6aa1cb",
    "_uetvid": "326c6070770511eea482d557d68a6269",
    "rxvt": "1698659544101|1698657468956",
    "_px2": 'eyJ1IjoiNjRiM2YyNjktNzA0MC0xMDMxLTkwOGQtNWFhNDkxNmZkMDlhIiwidiI6ImVmMDBlNGRiLTc3MDUtMTFlZS1iZmNjLWZjNWIzYWViMGFjMiIsInQiOjE2OTg2NTgwODcxNDMsImgiOiIyM2Q2NTY5YzZjYTI0MmUwMWY2NDJjNWY1M2YyNDQ2YTcwMjM5MzU5OWNjM2RkMDkxZTk5MjA1ZWZhMmYxMzBlIn0=',

    "dtPC": "-67$57741890_72h1vFCNWPCKTBACEANENRPBAFKIQDNFPFHUJ-0e0",
    "dtSa": "true%7CC%7C-1%7C%2419Mon%2012%2F4%7C-%7C1698657744630%7C57741890_72%7Chttps%3A%2F%2Fbooking.flyfrontier.com%2FFlight%2FSelect%7C%7C%7C%7C"
}


url = "https://booking.flyfrontier.com/Flight/InternalSelect"
params = {
    "s": "true",
    "o1": "DEN",
    "d1": "LAS",
    "dd1": "2023-12-01",
    "dd2": "0001-01-01",
    "mon": "true",
    "adt": "1"
}
response = session.get(url, headers=headers, cookies=cookies, params=params)

print(response.text)
print(response)