#

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",
}

headers = {"sec-ch-ua-platform": "\"macOS\"", "sec-fetch-mode": "navigate", "upgrade-insecure-requests": "1", "cookie": "", "sec-ch-ua-mobile": "?0", "cache-control": "no-cache", "authority": "makeabooking.flyscoot.com", "accept-language": "en-US,en;q=0.9", "pragma": "no-cache", "sec-fetch-dest": "document", "sec-fetch-site": "none", "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-user": "?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", "sec-ch-ua": "\"Google Chrome\";v=\"117\", \"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"117\""}



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)
