import requests

import tls_client

session = tls_client.Session(client_identifier='chrome_117')
session.proxies = {
    'http': 'http://127.0.0.1:8890',
    'https': 'http://127.0.0.1:8890',
}
headers = {
    "Host": "booking.flyfrontier.com",
    "sec-ch-ua": "\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Microsoft Edge\";v=\"116\"",
    "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/116.0.0.0 Safari/537.36",
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
    "sec-fetch-site": "none",
    "sec-fetch-mode": "navigate",
    "sec-fetch-user": "?1",
    "sec-fetch-dest": "document",
    "accept-language": "en-US,en;q=0.9,en-GB;q=0.8,en-GB-oxendict;q=0.7"
}
cookies = {
    "_pxhd": "6827757202d170d023e28a4c90997d1bdcee34262544eaf01929b55299e62c19:c6a3f12b-7310-11ee-8bae-8940263c7be9",
    "_pin_unauth": "dWlkPU5EazBPRE0xWlRJdFpEazFZUzAwTnpFMExUZ3pZemN0TldVMVpUQmhNVFl3T1dKaw",
    "ASP.NET_SessionId": "mlnhw3p3t2nvyjnbwlfdeblx",
    "dotrez": "!3jxw0pmATs3GWke5S+aslGv8BafefqF3PBUJSvq22BkV2sDG6OcieDbZtVb1kWWRkQcTN0DHKRrl3/I=",
    "_gcl_au": "1.1.1817622380.1708315051",
    "_rdt_uuid": "1708315070764.b345355e-55aa-40c1-b599-3162fb7765f7",
    "_gid": "GA1.2.512739122.1708315071",
    "cjConsent": "MHxOfDB8Tnww",
    "cjUser": "fc396a06-2c35-46a1-a1f0-3f126be4af1d",
    "cjLiveRampLastCall": "2024-02-19T03:57:50.774Z",
    "_ga_XXXX": "GS1.1.1708315051.1.1.1708315070.0.0.0",
    "_ga": "GA1.1.151536026.1708315052",
    "_ga_P2WLKWBNNW": "GS1.1.1708315051.1.1.1708315070.41.0.0",
    "wisepops": "%7B%22csd%22%3A1%2C%22popups%22%3A%7B%7D%2C%22sub%22%3A0%2C%22ucrn%22%3A41%2C%22cid%22%3A%2278471%22%2C%22v%22%3A4%2C%22bandit%22%3A%7B%22recos%22%3A%7B%7D%7D%7D",
    "_uetsid": "0d3003f0cedb11ee8954e9c1245efbdb",
    "_uetvid": "0d302a20cedb11ee89f6e3449b412e12",
    "wisepops_visits": "%5B%222024-02-19T03%3A57%3A35.280Z%22%5D",
    "wisepops_session": "%7B%22arrivalOnSite%22%3A%222024-02-19T03%3A57%3A35.280Z%22%2C%22mtime%22%3A1708315071866%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",
    "pxcts": "0da5e9fb-cedb-11ee-aaa1-10d48bf25a20",
    "_pxvid": "0da54c02-cedb-11ee-aaa0-1eb376654a65"
}
url = 'https://booking.flyfrontier.com/Booking/Retrieve?&ln=Gomez%20Carrillo&rl=AENQ7Q'
response = session.get(url, headers=headers, allow_redirects=True, cookies = {
    "_px2": "eyJ1IjoiOWJiNWNhMTAtY2VlYy0xMWVlLThlMTUtNzdmZDNhZWJhNDRlIiwidiI6IjljMzdjZDJlLWNlZWMtMTFlZS04ODViLTU2N2M5MDA2YWM0MSIsInQiOjE3MDgzMjI5MTY2OTcsImgiOiIwMzAxNDRjNzUzZWFhMDNhODA1MTMxYTZlNzk2ZjUyMjZmZDExNGM4NzQwZmJkZTIxYTk3NTA1MzllODJmMjRiIn0=",
    "_pxvid": "9c37cd2e-ceec-11ee-885b-567c9006ac41",
    "pxcts": "9c37db2f-ceec-11ee-885b-e880a9dc0acd"
})

print(response.text)
print(response)