#

import tls_client

session = tls_client.Session(client_identifier='chrome_117')
px = 'http://127.0.0.1:7890'
session.proxies = {
    'http': px,
    'https': px,
}
session.proxies = {
    'http': "http://user-uni007-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600",
    'https': "http://user-uni007-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600",
}
session.proxies = {
    'http': 'http://127.0.0.1:7890',
    'https': 'http://127.0.0.1:7890',
}
headers = {"sec-fetch-site": "none", "accept-language": "en-US,en;q=0.9", "pragma": "no-cache", "sec-ch-ua": "\"Google Chrome\";v=\"117\", \"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"117\"", "sec-ch-ua-platform": "\"macOS\"", "sec-fetch-mode": "navigate", "sec-fetch-user": "?1", "upgrade-insecure-requests": "1", "authority": "makeabooking.flyscoot.com", "sec-fetch-dest": "document", "cache-control": "no-cache", "sec-ch-ua-mobile": "?0", "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", "cookie": "reese84=3:4wwYamjfSRzVAx5LQ/rI7g==:3X2yH1rv4YLsTTv2a8Lf/6jfOXVxKFQ3z1qOhjaGMde4yHT2r4gZV7vOklX5q8JLCKrArXTNTYeP9LkRkYm9YrGW1IpRl0Mf44Eqr3JlM9auDmvqIRyC/2ESgGf9yXwaO+GjqBqJQOy2i0i5GhxhtWS6Dsuz4ChloY3ZA/Wullgo4pjRp2Ga1b89Q9qn0P9kUz6HM8idbyPHPw/7+bnJuwPBS6DKRUdKClRTSyIpg1k3ODNEs56sXxConz9Nvta2SMMxmZt/Bg8xpqNMVP1o7JBJZ4F0UO8KZvM5VREYSxM+YhYISMWmKvVkGMdvn8na8hQfvgajGTskHZyLHYbFpXOv2TEqmJ4+CIqip+P5KLEdNPEbh2LgxIYFQy0RiziRsS7QJWDSNRnhfKMT5IGQgW4VaHJ938hZelqDRRo6YFMnIsdarZuCOZzNhkecaoAt0oBvo60nVkIkphPwr0sfDw==:n6ZVgmdFPzKrTbwWnxf1PcYuvxvPk3TpPHE3u16IZe8=; nlbi_2444946_2147483392=l7GIdHrDtidZdPGrbmwDOgAAAAA1RIwM9HRJJdkgv0+Wi6Ll", "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"}


url = "https://makeabooking.flyscoot.com/Book/Flight?culture=en-SG&type=oneway&dst1=HKT&ast1=TAO&dd=2023-12-15&rd=null&adt=1&chd=0&inf=0#"
# url = "https://makeabooking.flyscoot.com/Book/Flight?culture=en-SG&type=oneway&dst1=SIN&ast1=ADL&dst2=ADL&ast2=SIN&dd=2023-12-18&rd=null&adt=1&chd=0&inf=0"
response = session.get(url, headers=headers)

print(response.text)
print(response)

# import requests
#
# request_data = {
#     "service_name": "lcc-tls-forward",
#     "source_url": "http://39.106.6.97:88/svn/develop/lcc-catcher/lcc-tls-forward-1.0.1.jar",
#     "cur_version": "1.0.1",
#     "upgrade": "ON",
#     "force_upgrade": "OFF",
#     "upgrade_method": "serial",
#     "environment": ["prod"]
# }
# request_url = "http://47.102.111.131:8083/api/v1/service/upgrade"
#
# res = requests.post(url=request_url, json=request_data)
# print(res.text)
