Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- max_time = 0
- list = []
- while True:
- try:
- url = "https://api16-va.tiktokv.com/aweme/v1/user/follower/list/"
- querystring = {
- "user_id": "6767633241984254982",
- #"sec_user_id": "MS4wLjABAAAAheMsneMc4SYlvH92S-oZ8ts3OVEijaQVvmWnTOHO3zlOCUsuVCMd79zNmIZdsOUO",
- "max_time": max_time,
- "count": "200",
- "offset": "0",
- "source_type": "2",
- "address_book_access": "2",
- "os_api": "25",
- "device_type": "SM-G973N",
- "ssmix": "a",
- "manifest_version_code": "2021903030",
- "dpi": "320",
- "carrier_region": "IE",
- "uoo": "0",
- "region": "US",
- "carrier_region_v2": "310",
- "app_name": "musical_ly",
- "version_name": "19.3.3",
- "timezone_offset": "7200",
- "ts": "1659306246",
- "ab_version": "19.3.3",
- "residence": "IE",
- "cpu_support64": "false",
- "current_region": "US",
- "ac2": "wifi",
- "ac": "wifi",
- "app_type": "normal",
- "host_abi": "armeabi-v7a",
- "channel": "googleplay",
- "update_version_code": "2021903030",
- "_rticket": "1659306247032",
- "device_platform": "android",
- "iid": "7126211940330063622",
- "build_number": "19.3.3",
- "locale": "en",
- "op_region": "IE",
- "version_code": "190303",
- "timezone_name": "Africa/Harare",
- "cdid": "7aa0211f-25a5-433d-afeb-c9676c2e496c",
- "openudid": "0e96eaebc0c2e44f",
- "sys_region": "US",
- "device_id": "6888243656290108930",
- "app_language": "en",
- "resolution": "1600*900",
- "device_brand": "samsung",
- "language": "en",
- "os_version": "7.1.2",
- "aid": "1233",
- "mcc_mnc": "31002"
- }
- headers = {
- "accept-encoding": "gzip",
- "passport-sdk-version": "19",
- #"x-tt-token": "031585234f81c07a2f7c4dce2744e239f7017ea8f9dd41252fa296dcbcaad8412e72d4bd55d754c2b748a30c575cb282c72dfba20af13f46841e5caa4e301517b0f6da5a4fe28e8d98b137db8f6759f4589141aac43bfba6bab71274dbbb3c455a2f8-CkBiNDNhOWYwYmYwNjlhN2RkYmRmZmM0OWUxZThkYTEwM2IzZDU0YzAwY2ZjMzIxN2ViMjFiYzQ5Nzg5ODg3MTU1-2.0.0",
- "sdk-version": "2",
- "x-ss-req-ticket": "1659306247034",
- "x-tt-dm-status": "login=1;ct=1",
- "x-tt-cmpl-token": "AgQQAPPdF-RPsI0hi33AZt08xfZsL4wdv4AaYMZjSw",
- #"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==",
- # "x-gorgon": "040440ba40003843f654ae8f85b8b0fd5633fb5a6fc9e9923c93",
- # "x-khronos": "1659306247",
- "host": "api16-va.tiktokv.com",
- "connection": "Keep-Alive",
- "user-agent": "okhttp/3.12.1"
- }
- response = requests.get(url, headers=headers, params=querystring)
- for using in response.json()["followers"]:
- if using["unique_id"] not in list:
- print(using["unique_id"])
- list.append(using["unique_id"])
- print(len(list))
- max_time = response.json()["min_time"]
- except:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement