import json

import tls_client

sess = tls_client.Session(client_identifier='chrome_120', random_tls_extension_order=False)

sess.proxies = {
    'http': 'http://127.0.0.1:8890',
    'https': 'http://127.0.0.1:8890',
}


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.950466982.1713842284; pxcts=195410d7-0120-11ef-8b81-6b5f6a8e2895; _pxvid=195404dc-0120-11ef-8b81-8519b3aa2d56; _ga_XXXX=GS1.1.1713842284.1.0.1713842284.0.0.1057511742; _rdt_uuid=1713842285399.9e2341d7-0b53-44a6-9856-97764c511e66; _ga=GA1.2.314860660.1713842285; _gid=GA1.2.93543428.1713842286; _gat_UA-2678252-1=1; cjConsent=MHxOfDB8Tnww; cjUser=0739f966-7a3e-49d9-a320-20cedaa81172; cjLiveRampLastCall=2024-04-23T03:18:06.772Z; _pin_unauth=dWlkPU1HUTNNVFV4WlRVdE1qZGtPUzAwT1dJeUxXSTROall0TlRSbU9EWTBaak5qWXpjdw; _ga_P2WLKWBNNW=GS1.1.1713842284.1.0.1713842288.56.0.0; _px2=eyJ1IjoiMThmNGMzOTAtMDEyMC0xMWVmLTk3OWUtZDU2ZWYzYzZiMjQwIiwidiI6IjE5NTQwNGRjLTAxMjAtMTFlZi04YjgxLTg1MTliM2FhMmQ1NiIsInQiOjE3MTM4NDI2MDc0NzMsImgiOiI4YTllNzkzMTYwMjBiNGI2NDVjNDcxZTA3ZjYwYjVjOTY5MjM4Yjk5ODgyNTQwMDFlODFhZjM0MGZlOTFiYTM0In0='




}

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)