#

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 = {"authority": "makeabooking.flyscoot.com", "sec-ch-ua": "\"Google Chrome\";v=\"117\", \"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"117\"", "sec-fetch-mode": "navigate", "accept-language": "en-US,en;q=0.9", "pragma": "no-cache", "sec-ch-ua-mobile": "?0", "sec-fetch-user": "?1", "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", "cache-control": "no-cache", "sec-ch-ua-platform": "\"macOS\"", "sec-fetch-site": "none", "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", "sec-fetch-dest": "document", "cookie": "reese84=3:4CmdPwLvfBRc6A36T09R0w==:tKDETX3kQXeYfkFw2EfPXCvTc3fOybw+e73DWigYe9Ihs/hjv94ARAsU1hVXjB70ZJSeGaPf66tqtTi4s4jamm0CossreLcFI7PTBhMqgtKmLuaiXNMl9zClgbwjacQ7stELU4ozLcvvmCT4d1YkI4Ik3YpL49nQNDIw0fOgXmd/GljSMf0hNUZBiICP2hmERgMgwNBB5QuitSZzcJjbVM8zZ5Ws9Qdy5QiCa30DCq3niVrK4tFI5Q9G5r4gaG5xqye+vpZH9ckjSDS9LZaj1lXVF4FYe5M6cup4Xxs2VxmjuHcnNjaCHndoHLOZpyP1buptOOuV/RG7x10rjrwTbPv2qw31vm8RXK7W3heh8MsBhRFzNf7Wy5WIXWL4kbGONiZITLjOCdddXrlT+XZPLPXAwJ3zjeJr4IndPOONrlp3u7bnm7GO+VTdfj4WkgpTKtkulLBftxLFzk5MWaWDYg==:ZhgVCth+sGQAZXY3Hh/AbMNS1sI7NSy3t60KbI1oyig="}

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)
