#

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://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000",
    'https': "http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000",
}

headers = {"sec-fetch-dest": "document", "sec-fetch-user": "?1", "cookie": "reese84=3:HxlAVGoXfmGH32gr12cY5w==:5yDV4ndvry+Cxx22UGaOCAVSy5ZuwU1p/8AqUIZAQgfdasRwrwXv8Z42l8U4n/acdGpTuzjuk2LlWBfGP+KdB+cxL2Zqhh2Kmu2iE3cbFtTaMh9RrnacLk3n4j7+EdE+/tzx2GJKwVjQnnQprw38SDOm3BtpmkkoexCbpuqOLX/rekgSQswHq+I/khQZImkagOF9tZpNWV0RK49urKs9PZ5TjBMUqg7gbvb4o/QCxGIglwj9xrPjUMCEmP4edUsJu5TqawigBmD+H16PUb0BqhC+W5LdO8Y4M32/nMukG9ra5waBr16XuZHFYK9HnyzOugPJz5HkzgNxt1aqxX46X8rqxI2wx0WuRw+uQKXP0ifyXYNe0C188z2Y3Ti/YgliMlecQgyKugyonyxr0Q9mYFJyCbfarHN3fjQxnzDrYCPsuX4TPQ2x7lDWbtm+GTt9qoh/sYW7UdCDL0GOyByunw==:eXQIPq0x1prDbIGujtZxsHT3LHxKcxGe/+4rVo//2PU=; incap_ses_526_2444926=2fxdbr9K61pOzrfxabtMB9N3YGUAAAAAv4CkHR7fUz+vGIE/JFSlww==; nlbi_2444926_2147483392=XYavPJcfS1vT0kvTgG/1SgAAAAAwuzz2MdxNeQ+/jYIZOYcc", "authority": "makeabooking.flyscoot.com", "sec-ch-ua": "\"Google Chrome\";v=\"117\", \"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"117\"", "sec-ch-ua-platform": "\"macOS\"", "upgrade-insecure-requests": "1", "accept-language": "en-US,en;q=0.9", "cache-control": "no-cache", "pragma": "no-cache", "sec-fetch-site": "none", "sec-fetch-mode": "navigate", "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", "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-ch-ua-mobile": "?0"}


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)
