Advertisement
xtekky_

Untitled

Jul 23rd, 2022
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.77 KB | None | 0 0
  1. GET INBOX
  2.  
  3. import requests
  4.  
  5. url = "https://api16-va.tiktokv.com/aweme/janus/v1/notice/multi/"
  6.  
  7. querystring = {
  8. "live_entrance": "5",
  9. "req_from": "tiktok_message",
  10. "is_draw": "0",
  11. "content_type": "3",
  12. "channel_id": "81",
  13. "count": "0",
  14. "webcast_sdk_version": "1840",
  15. "webcast_client_version": "19.3.3",
  16. "webcast_language": "en",
  17. "webcast_locale": "en",
  18. "os_api": "25",
  19. "device_type": "SM-G973N",
  20. "ssmix": "a",
  21. "manifest_version_code": "2021903030",
  22. "dpi": "320",
  23. "carrier_region": "IE",
  24. "uoo": "0",
  25. "region": "US",
  26. "carrier_region_v2": "310",
  27. "app_name": "musical_ly",
  28. "version_name": "19.3.3",
  29. "timezone_offset": "7200",
  30. "ts": "1658605368",
  31. "ab_version": "19.3.3",
  32. "residence": "IE",
  33. "cpu_support64": "false",
  34. "current_region": "US",
  35. "ac2": "wifi",
  36. "ac": "wifi",
  37. "app_type": "normal",
  38. "host_abi": "armeabi-v7a",
  39. "channel": "googleplay",
  40. "update_version_code": "2021903030",
  41. "_rticket": "1658605369385",
  42. "device_platform": "android",
  43. "iid": "7122515864645289734",
  44. "build_number": "19.3.3",
  45. "locale": "en",
  46. "op_region": "IE",
  47. "version_code": "190303",
  48. "timezone_name": "Africa/Harare",
  49. "cdid": "1fc627e2-6956-4df8-9dd8-ed499e2d71a7",
  50. "openudid": "0e96eaebc0c2e44f",
  51. "sys_region": "US",
  52. "device_id": "6888243656290108930",
  53. "app_language": "en",
  54. "resolution": "900*1600",
  55. "device_brand": "samsung",
  56. "language": "en",
  57. "os_version": "7.1.2",
  58. "aid": "1233",
  59. "mcc_mnc": "31002"
  60. }
  61.  
  62. headers = {
  63. "accept-encoding": "gzip",
  64. "passport-sdk-version": "19",
  65. "x-tt-token": "03725646035c21d3f781e8d874d691f34804b8af38de4d8f4885bae5cd07e286efd270ad19d12af66beea40076e0eab72d2d12e8e36f4cf5f63f82e782169aa3ca36c4d1fdc4cdc443eccca47829dc15e39310881576189595e0d833e8196d30e2d5d-1.0.1",
  66. "sdk-version": "2",
  67. "x-ss-req-ticket": "1658605369389",
  68. "x-tt-dm-status": "login=1;ct=1",
  69. "x-tt-cmpl-token": "AgQQAPObF-RPsI8CtPIKJt0_xfZsL4wdv4BpYMZVBA",
  70. "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=p6ndKHtfums5TgzspqCKatDSD4S58SoVXA0yWbKbK0XRlMbaBdsu5rTMvQ7MF_b-R7h4VqaAN2DIXVZHwcNG6JsLG1EyFTYApSeSKeLg2Ojs_9lx0pj5JRlAZA==",
  71. "x-gorgon": "0404a0584000a3f26db07a611476bbca243cd3da708cac4db58e",
  72. "x-khronos": "1658605369",
  73. "host": "api16-va.tiktokv.com",
  74. "connection": "Keep-Alive",
  75. "user-agent": "okhttp/3.12.1"
  76. }
  77.  
  78. response = requests.get(url, headers=headers, params=querystring)
  79.  
  80. print(response.text)
  81.  
  82. import requests
  83.  
  84. url = "https://api16-va.tiktokv.com/aweme/v1/notice/multi/"
  85.  
  86. querystring = {
  87. "group_list": "[{\"max_time\":0,\"min_time\":0,\"count\":20,\"group\":36,\"is_mark_read\":1}]",
  88. "os_api": "25",
  89. "device_type": "SM-G973N",
  90. "ssmix": "a",
  91. "manifest_version_code": "2021903030",
  92. "dpi": "320",
  93. "carrier_region": "IE",
  94. "uoo": "0",
  95. "region": "US",
  96. "carrier_region_v2": "310",
  97. "app_name": "musical_ly",
  98. "version_name": "19.3.3",
  99. "timezone_offset": "7200",
  100. "ts": "1658605368",
  101. "ab_version": "19.3.3",
  102. "residence": "IE",
  103. "cpu_support64": "false",
  104. "current_region": "US",
  105. "ac2": "wifi",
  106. "ac": "wifi",
  107. "app_type": "normal",
  108. "host_abi": "armeabi-v7a",
  109. "channel": "googleplay",
  110. "update_version_code": "2021903030",
  111. "_rticket": "1658605369381",
  112. "device_platform": "android",
  113. "iid": "7122515864645289734",
  114. "build_number": "19.3.3",
  115. "locale": "en",
  116. "op_region": "IE",
  117. "version_code": "190303",
  118. "timezone_name": "Africa/Harare",
  119. "cdid": "1fc627e2-6956-4df8-9dd8-ed499e2d71a7",
  120. "openudid": "0e96eaebc0c2e44f",
  121. "sys_region": "US",
  122. "device_id": "6888243656290108930",
  123. "app_language": "en",
  124. "resolution": "900*1600",
  125. "device_brand": "samsung",
  126. "language": "en",
  127. "os_version": "7.1.2",
  128. "aid": "1233",
  129. "mcc_mnc": "31002"
  130. }
  131.  
  132. headers = {
  133. "accept-encoding": "gzip",
  134. "passport-sdk-version": "19",
  135. "x-tt-token": "03725646035c21d3f781e8d874d691f34804b8af38de4d8f4885bae5cd07e286efd270ad19d12af66beea40076e0eab72d2d12e8e36f4cf5f63f82e782169aa3ca36c4d1fdc4cdc443eccca47829dc15e39310881576189595e0d833e8196d30e2d5d-1.0.1",
  136. "sdk-version": "2",
  137. "x-ss-req-ticket": "1658605369387",
  138. "x-tt-dm-status": "login=1;ct=1",
  139. "x-tt-cmpl-token": "AgQQAPObF-RPsI8CtPIKJt0_xfZsL4wdv4BpYMZVBA",
  140. "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=p6ndKHtfums5TgzspqCKatDSD4S58SoVXA0yWbKbK0XRlMbaBdsu5rTMvQ7MF_b-R7h4VqaAN2DIXVZHwcNG6JsLG1EyFTYApSeSKeLg2Ojs_9lx0pj5JRlAZA==",
  141. "x-gorgon": "0404000e4000c880788b92fa02b464c71c01922cb0b0de8e126e",
  142. "x-khronos": "1658605369",
  143. "host": "api16-va.tiktokv.com",
  144. "connection": "Keep-Alive",
  145. "user-agent": "okhttp/3.12.1"
  146. }
  147.  
  148. response = requests.get(url, headers=headers, params=querystring)
  149.  
  150. print(response.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement