import requests


headers = {
    "authority": "www-useast1a.tiktok.com",
    "accept": "application/json, text/javascript",
    "accept-language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6",
    "cache-control": "no-cache",
    "content-type": "application/x-www-form-urlencoded",
    "origin": "https://www.tiktok.com",
    "pragma": "no-cache",
    "referer": "https://www.tiktok.com/",
    "sec-ch-ua": "\"Google Chrome\";v=\"117\", \"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"117\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"macOS\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-site",
    "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",
    "x-mssdk-info": "RgE5ViOlGtmTZ6UEqkVS0bdI8gWC3y8EPvahKOSpQF1KqUfSeIf9S9hdCHAXmdOVYH8yAXQUcGe0FTZFgwZ7FJBEF0kx.GvRlBWHhIL9UgIPkficcv1d62EnuudMC.y3BVr33BCKNHgf46mB8RmRb7LoZhM7SxJZhp-W3.6ugtOmCLSJtREfTAE1rD7wZkL18UtCevSOibG0qODyjrFcPsahp7JU0kwl61-XgJ3SobLLi.y9AzTCBNtmEo0S7FOYxa2wHYN4Hc96nzt1TeuVCvBe8t5QhNq2kTuP.jn0d3rmFvLjHr0Xgg8Bnttq2TPvRPs5z7Vkps1b7KzCD0Oa4I0cWBISKCMXzgMiHelP25Pb2.AtmHiZP1zG3vtkwdunvu8E6w4H6Wzem2j6S0lZNGDlzRhwCc.iT0kVR4-Hkts5nCvlikriCh5VwCeVv.ZNpasEv565CEMdXpziqg6OQMMHNvZw7rM88sGCIeNoXCzr7c5eAnifLygU7hiLR0-LUtyrQyNHIQmfLPCffBH2cAuFb18I0jG6vv35QcKAadauIu403kN2SwyI2s4waATfK8PY-31sZLG3LfA9aYYAgwxTUNazL-e8Jdb8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rPc4aRNSXKsW-dqTSSV-K64lqV0ImcaboPbWDSl73UJ-0FW852Y6.JEwV3Ftd43ymg4M9B2en15AzhDwVC558D7U2qWSf1Bl3kauT8ZwLZrgzdPA26oFO3-fZOR9ZyyussvlV5tWLR7dNENptSF83HpxKoHaASVbbPO00-NdMV4DOOkDqZEF1.CSKBWtsojen8tSZdvLsqsEBn9D8bw2VzKgx.s2bINTRxZjXPiw6GCH0W7XeORXDYiJZwQ2LltUH-UoY9KrlDEYx5IP1jQiqnGw91UMUyArkKxQmQ-ZmEkoTFJF4MChL40APQ4Ghc4iv3KF1GIAN8VsYwKbsKB0K3DvroArT32Pa.rdc09GUBToqeQLEQnE7Eo.bIPJOTPfzTXEAg637cgA39pSGOw8orxPuAAW9aYrQmV2leAy4Tx.AFwgKHAbVm5kQvLfKxTUoQjk57zito9JsG0kfWLpXMWaP627kt9cziiaO3EqTe79ZjyfUIrLyBqt74rSm2Mexo0SbhyQPqvkaJIfT68Fu8tsj2ikIlbwCDhT0U0lkhiq.Gru6CxkgaIWt1nzJXirEhjrLpH2dH7nprG6FrLFYlMDzHu-itFGBb7sndmZxrzyQH6mD4JfWulzmlQ==",
    "x-tt-passport-csrf-token": "b26be1710ed327fe8ae9cc3b37ac11c1",
    "x-tt-passport-ttwid-ticket": "AeHZ9mOgDiPd7eC-dO0iaJThC_U_r77Fwx0V-CzDaM8OV6S3Hno_8dGxQ8_Fq3BU4w=="
}

headers.update(
{"htc6j8njvn-f":"A_UjUXCLAQAA5kJPNZy1ErsYvjlolV8o4f2uhhbxtO1hXQpAzjjWpquFwL9hAWe-spUXTuHJwH9eCOfvosJeCA==","htc6j8njvn-b":"jly95c","htc6j8njvn-c":"AEAnQXCLAQAALv-xeOsCGEnS4GMG6kwJcJFqgCUYHDyRj5Nj-WaHpzRdnXG5","htc6j8njvn-d":"ABaAhIDBCKGFgQCAAYIQgISigaIAwBGAzvpCzi_33wdmh6c0XZ1xuQAAAAAF6UpmAOwm4BLa5zhlOlAhYh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ZT_I3SBRGbXhv2aVihnwGUjxCUSFA4902JFKmSKL4NYMrtqfRmwJUxkxZ8jdO8oSk0nXe_CGK2QDCMVauGr2WrBPAlmP8KThp8yphQEyp7iC2yf7bhXdWU=kWxaM79D7=526-AuIgoXGfu0FHH2KYQseRdOW-bn67tfku25WEHeuB4-FFumdB6MRWLcqWw-uMMpBikPLpKn3AhSU79jp0dkb1oU6w0FArpZyyuyBjyeCSYGOYiqmbYeNlRYVhOwXZhmHIcr4-xYBweH3TbkOoZaah9FJweGZRlmLtkCgl9bZuqQ_8t55L14O4LDi8TLp_6dhAZZEWQyfWEF_Mg3voifHx5Uia5C9d4t5tw6WyJO11HN8SU-lKDIuMWxjtEeh7w7bZw7xVWbKtiVW-I=wcVCJ89TBFylDrih9PG7=JOxa0EbXUGQW3yNcCqTeYg1jUdBcaU8o1Jh1hlGxkLhJY6oKIoXdZOuxch4Gk-eeWPC6OV81uwOgjKJZf3xLmAu541SIGhkFhepbb2em99S_2vuGrN3_Q2Oq_8Z0JKs6tJ6OH7772ZBVDMYly7BOTNIOPTlI_0rcNx3CMnPaSXgEw2IWwiqIar=U","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"}

)
cookies = {
    "_ttp": "2TNXWOb3S0xPwkEs9H9RJ3e1qWf",
    "tt_csrf_token": "BqmNHpc8-Qg1YLuCSnuvsEDRj4Lw1jXGs5N0",
    "tt_chain_token": "l5YwN/IUH5Ig55n61QD9IQ==",
    "odin_tt": "04ba763dc1ecd238dec5631164a07d030b18a77403fc5c0067b05c8ea6f3996f82715f567dbb4a883d7540cb9074ce8aa0d3a3ecd18885d8151255d98e0e8004b4f581465f73cc708118d81c8500c932",
    "passport_csrf_token": "b26be1710ed327fe8ae9cc3b37ac11c1",
    "passport_csrf_token_default": "b26be1710ed327fe8ae9cc3b37ac11c1",
    "s_v_web_id": "verify_lo8b6mg7_Zr2zGrIg_qP3A_4q9A_8PrO_mEIz1bvGNQUL",
    "ttwid": "1%7CpWdOcN3fFGdFor-aMe396Ch_2zc23yhOyDKWt8HrHv0%7C1698396389%7C4c7aec356e0c0b97fc3006cc70c0bb4d50d0468e3b2254c7ca1e058d5315a677",
    "msToken": "JI7AHmUdQrgzk6IwF90qXFak0gmeyscEVfE-yfcDzMNWInLWboYAu9QLnpTBMcilDxpt7RMB-JmaMTc9WTBsyW4zFubFCiPVALSk201iSPB2X8f-Dm__lT8HdvoM_8DjnC3k8jTLaEe2BSG9"
}
url = "https://www-useast1a.tiktok.com/passport/web/user/login/"
params = {
    "multi_login": "1",
    "did": "7294541073777427986",
    "aid": "1459",
    "account_sdk_source": "web",
    "sdk_version": "2.0.3-tiktok",
    "language": "en",
    "verifyFp": "verify_lo8b6mg7_Zr2zGrIg_qP3A_4q9A_8PrO_mEIz1bvGNQUL",
    "target_aid": "",
    "shark_extra": "{\"aid\":1459,\"app_name\":\"Tik_Tok_Login\",\"channel\":\"tiktok_web\",\"device_platform\":\"web_pc\",\"device_id\":\"7294541073777427986\",\"region\":\"SG\",\"priority_region\":\"\",\"os\":\"mac\",\"referer\":\"\",\"cookie_enabled\":true,\"screen_width\":1920,\"screen_height\":1080,\"browser_language\":\"en-US\",\"browser_platform\":\"MacIntel\",\"browser_name\":\"Mozilla\",\"browser_version\":\"5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36\",\"browser_online\":true,\"verifyFp\":\"verify_lo8b6mg7_Zr2zGrIg_qP3A_4q9A_8PrO_mEIz1bvGNQUL\",\"app_language\":\"en\",\"webcast_language\":\"en\",\"tz_name\":\"Asia/Shanghai\",\"is_page_visible\":true,\"focus_state\":true,\"is_fullscreen\":false,\"history_len\":5,\"battery_info\":null}",
    "msToken": "3SiHm4HCMu9oIuFnS_5ovT_Xa8H_iWo-EuH-bx6aR2VND22_6G_MvZj5MTysaVe67dqzAPJtOYRHjM1aTgHrJfJgEwGA5t3XVeKRxBVFtmcv-e4PNN3-zubCv3lU2-Si8Yk9y8KfQxvKb3EK",
    "X-Bogus": "DFSzswVu3kqdqTa-tYCtPt9WcBrY",
    "_signature": "_02B4Z6wo00001PSCv0QAAIDA9IK.R2I9cqj0grvAAFghd8"
}
data = {
    "mix_mode": "1",
    "username": "",
    "mobile": "2e33302534343234333d3233323d3733",
    "account": "2e33302534343234333d3233323d3733",
    "password": "3433323d3733343233373d3437",
    "aid": "1459",
    "is_sso": "false",
    "account_sdk_source": "web",
    "region": "SG",
    "language": "en",
    "did": "7294541073777427986",
    "fixed_mix_mode": "1"
}
response = requests.post(url, headers=headers, cookies=cookies, params=params, data=data, proxies={
    'http': 'http://127.0.0.1:7890',
    'https': 'http://127.0.0.1:7890',
})

print(response.text)
print(response)