Advertisement
xtekky_

Untitled

Jul 23rd, 2022
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.40 KB | None | 0 0
  1. import requests
  2.  
  3. url = "https://api16-va.tiktokv.com/tiktok/v1/videos/detail/"
  4.  
  5. querystring = {
  6.     "os_api": "25",
  7.     "device_type": "SM-G973N",
  8.     "ssmix": "a",
  9.     "manifest_version_code": "2021903030",
  10.     "dpi": "320",
  11.     "carrier_region": "IE",
  12.     "uoo": "0",
  13.     "region": "US",
  14.     "carrier_region_v2": "310",
  15.     "app_name": "musical_ly",
  16.     "version_name": "19.3.3",
  17.     "timezone_offset": "7200",
  18.     "ts": "1658605557",
  19.     "ab_version": "19.3.3",
  20.     "residence": "IE",
  21.     "cpu_support64": "false",
  22.     "current_region": "US",
  23.     "ac2": "wifi",
  24.     "ac": "wifi",
  25.     "app_type": "normal",
  26.     "host_abi": "armeabi-v7a",
  27.     "channel": "googleplay",
  28.     "update_version_code": "2021903030",
  29.     "_rticket": "1658605558017",
  30.     "device_platform": "android",
  31.     "iid": "7122515864645289734",
  32.     "build_number": "19.3.3",
  33.     "locale": "en",
  34.     "op_region": "IE",
  35.     "version_code": "190303",
  36.     "timezone_name": "Africa/Harare",
  37.     "cdid": "1fc627e2-6956-4df8-9dd8-ed499e2d71a7",
  38.     "openudid": "0e96eaebc0c2e44f",
  39.     "sys_region": "US",
  40.     "device_id": "6888243656290108930",
  41.     "app_language": "en",
  42.     "resolution": "900*1600",
  43.     "device_brand": "samsung",
  44.     "language": "en",
  45.     "os_version": "7.1.2",
  46.     "aid": "1233",
  47.     "mcc_mnc": "31002"
  48. }
  49.  
  50. payload = "aweme_ids=%5B6962458451272420613%5D&origin_type=chat&request_source=0"
  51. headers = {
  52.     "x-ss-stub": "28F1478DC2F8419959D6DA0272F94AC1",
  53.     "accept-encoding": "gzip",
  54.     "passport-sdk-version": "19",
  55.     "x-tt-token": "03725646035c21d3f781e8d874d691f34804b8af38de4d8f4885bae5cd07e286efd270ad19d12af66beea40076e0eab72d2d12e8e36f4cf5f63f82e782169aa3ca36c4d1fdc4cdc443eccca47829dc15e39310881576189595e0d833e8196d30e2d5d-1.0.1",
  56.     "sdk-version": "2",
  57.     "x-ss-req-ticket": "1658605558020",
  58.     "x-tt-dm-status": "login=1;ct=1",
  59.     "x-tt-cmpl-token": "AgQQAPObF-RPsI8CtPIKJt0_xfZsL4wdv4BpYMZVBA",
  60.     "cookie": "passport_csrf_token=37030da28e964989d1e047761d809927; passport_csrf_token_default=37030da28e964989d1e047761d809927; d_ticket=e2d72a51e3a864d82b847b82aacb938707649; multi_sids=6862459255506863110%3A725646035c21d3f781e8d874d691f348; odin_tt=99d36fb711096bfedf3252562518187ad40637cc7e987be61308700d0262513ab57a446e6c617fccbfa4335f86d065caaa20364c33ab249d5acd45f1efb427ab89d8f45f893676f760972cd0856d0f0c; cmpl_token=AgQQAPObF-RPsI8CtPIKJt0_xfZsL4wdv4AQYMZRLw; sid_guard=725646035c21d3f781e8d874d691f348%7C1658539898%7C15551999%7CThu%2C+19-Jan-2023+01%3A31%3A37+GMT; uid_tt=364b1f94200af5b9577c0b11ea374b3083b077dfac9b8f1086e093dcbdce2e55; uid_tt_ss=364b1f94200af5b9577c0b11ea374b3083b077dfac9b8f1086e093dcbdce2e55; sid_tt=725646035c21d3f781e8d874d691f348; sessionid=725646035c21d3f781e8d874d691f348; sessionid_ss=725646035c21d3f781e8d874d691f348; store-idc=maliva; store-country-code=fr; tt-target-idc=useast1a; install_id=7122515864645289734; ttreq=1$ee74efa76edfaf0b512f6cb9cba89a480a645564; msToken=XaC7AjABMA-_-o3_eJSEDWt-zqPAL08IG5HCmxYaImFobTv0woM8EhbgUHMySxt_Eg7xE73wX6IIB9ybo1wK_BfhtsKl7vcINnOGJrQHL8CVt4TIpuWVMq35WQ==",
  61.     "x-gorgon": "0404e0dc400065fe4783162b01aed86712ea24c78c236ba14c58",
  62.     "x-khronos": "1658605558",
  63.     "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
  64.     "host": "api16-va.tiktokv.com",
  65.     "connection": "Keep-Alive",
  66.     "user-agent": "okhttp/3.12.1"
  67. }
  68.  
  69. response = requests.post(url, data=payload, headers=headers, params=querystring)
  70.  
  71. print(response.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement