Advertisement
xtekky_

Untitled

Jul 31st, 2022
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.41 KB | None | 0 0
  1. import requests
  2.  
  3. __max_time = 0
  4. __list = []
  5. __user_id = ""
  6.  
  7. while True:
  8.     try:
  9.         url = "https://api16-va.tiktokv.com/aweme/v1/user/follower/list/"
  10.  
  11.         querystring = {
  12.             "user_id": __user_id,
  13.             #"sec_user_id": "MS4wLjABAAAAheMsneMc4SYlvH92S-oZ8ts3OVEijaQVvmWnTOHO3zlOCUsuVCMd79zNmIZdsOUO",
  14.             "max_time": __max_time,
  15.             "count": "200",
  16.             "offset": "0",
  17.             "source_type": "2",
  18.             "address_book_access": "2",
  19.             "os_api": "25",
  20.             "device_type": "SM-G973N",
  21.             "ssmix": "a",
  22.             "manifest_version_code": "2021903030",
  23.             "dpi": "320",
  24.             "carrier_region": "IE",
  25.             "uoo": "0",
  26.             "region": "US",
  27.             "carrier_region_v2": "310",
  28.             "app_name": "musical_ly",
  29.             "version_name": "19.3.3",
  30.             "timezone_offset": "7200",
  31.             "ts": "1659306246",
  32.             "ab_version": "19.3.3",
  33.             "residence": "IE",
  34.             "cpu_support64": "false",
  35.             "current_region": "US",
  36.             "ac2": "wifi",
  37.             "ac": "wifi",
  38.             "app_type": "normal",
  39.             "host_abi": "armeabi-v7a",
  40.             "channel": "googleplay",
  41.             "update_version_code": "2021903030",
  42.             "_rticket": "1659306247032",
  43.             "device_platform": "android",
  44.             "iid": "7126211940330063622",
  45.             "build_number": "19.3.3",
  46.             "locale": "en",
  47.             "op_region": "IE",
  48.             "version_code": "190303",
  49.             "timezone_name": "Africa/Harare",
  50.             "cdid": "7aa0211f-25a5-433d-afeb-c9676c2e496c",
  51.             "openudid": "0e96eaebc0c2e44f",
  52.             "sys_region": "US",
  53.             "device_id": "6888243656290108930",
  54.             "app_language": "en",
  55.             "resolution": "1600*900",
  56.             "device_brand": "samsung",
  57.             "language": "en",
  58.             "os_version": "7.1.2",
  59.             "aid": "1233",
  60.             "mcc_mnc": "31002"
  61.         }
  62.  
  63.         headers = {
  64.             "accept-encoding": "gzip",
  65.             "passport-sdk-version": "19",
  66.             #"x-tt-token": "031585234f81c07a2f7c4dce2744e239f7017ea8f9dd41252fa296dcbcaad8412e72d4bd55d754c2b748a30c575cb282c72dfba20af13f46841e5caa4e301517b0f6da5a4fe28e8d98b137db8f6759f4589141aac43bfba6bab71274dbbb3c455a2f8-CkBiNDNhOWYwYmYwNjlhN2RkYmRmZmM0OWUxZThkYTEwM2IzZDU0YzAwY2ZjMzIxN2ViMjFiYzQ5Nzg5ODg3MTU1-2.0.0",
  67.             "sdk-version": "2",
  68.             "x-ss-req-ticket": "1659306247034",
  69.             "x-tt-dm-status": "login=1;ct=1",
  70.             "x-tt-cmpl-token": "AgQQAPPdF-RPsI0hi33AZt08xfZsL4wdv4AaYMZjSw",
  71.             #"cookie": "install_id=7126211940330063622; ttreq=1$5b8d001771062dee4d5746215e43dd3875d1cf08; passport_csrf_token=fdcd8e815b0ca170c7247ad98c8e9a24; passport_csrf_token_default=fdcd8e815b0ca170c7247ad98c8e9a24; d_ticket=80aed64176cb651213ec2c4638ed6a2c07649; tt-target-idc=useast1a; multi_sids=6710193957996069893%3A1585234f81c07a2f7c4dce2744e239f7; cmpl_token=AgQQAPPdF-RPsI0hi33AZt08xfZsL4wdv4AaYMZjSw; sid_guard=1585234f81c07a2f7c4dce2744e239f7%7C1659306217%7C15552000%7CFri%2C+27-Jan-2023+22%3A23%3A37+GMT; uid_tt=21e1a742cc4c25bbc570aca9a2a7a37aa39919f800f1b97bb0748ef385a4ca39; uid_tt_ss=21e1a742cc4c25bbc570aca9a2a7a37aa39919f800f1b97bb0748ef385a4ca39; sid_tt=1585234f81c07a2f7c4dce2744e239f7; sessionid=1585234f81c07a2f7c4dce2744e239f7; sessionid_ss=1585234f81c07a2f7c4dce2744e239f7; store-idc=maliva; store-country-code=de; odin_tt=174e82aeb9b697417f42ee551339cf55c78da092024d6842fc0e288948593930aa63d275e0ed8d4e564e62138fc6b7ae6f1f53331e3fc616ed6f0af2cf6a4dd1705a0346c080ed8ac6fc4e3e046e3103; msToken=-CeLn4nh3XqgFhgAzmJBhojcDlrlA9vEW3KI0Ub6ecbi5OpPmmI3x_OMsOmFSkqiLrH6U1wiKH3EZTPmJRNc1kdsHxlxf01_PElbKqTBo6imwsaGYWG0kg==",
  72.             # "x-gorgon": "040440ba40003843f654ae8f85b8b0fd5633fb5a6fc9e9923c93",
  73.             # "x-khronos": "1659306247",
  74.             "host": "api16-va.tiktokv.com",
  75.             "connection": "Keep-Alive",
  76.             "user-agent": "okhttp/3.12.1"
  77.         }
  78.  
  79.         response = requests.get(url, headers=headers, params=querystring)
  80.  
  81.         for using in response.json()["followers"]:
  82.             if using["unique_id"] not in __list:
  83.                 print(using["unique_id"])
  84.                 __list.append(using["unique_id"])
  85.  
  86.         print(len(__list))
  87.        
  88.         max_time = response.json()["min_time"]
  89.     except:
  90.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement