Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests, time, json, urllib.parse
- url = "https://api-t2.tiktokv.com/aweme/v1/aweme/stats/"
- querystring = {
- "app_language": "fr",
- "iid": "7096914671404861186",
- "channel": "googleplay",
- "device_type": "SM-N970F",
- "ac": "wifi",
- "device_id": "6790033197118096902",
- "mcc_mnc": "21407",
- "os_version": "11",
- "version_code": "247",
- "app_name": "trill",
- "device_brand": "samsung",
- "ssmix": "a",
- "device_platform": "android",
- "aid": "1180",
- "as": "a1iosdfgh",
- "cp": "androide1",
- }
- payload = urllib.parse.urlencode(
- {
- "item_id": "7124373917690596614",
- "_rticket": str(int(time.time())) + "000", #1658943304806",
- "aweme_type": "0"
- }
- )
- headers = {
- "host": "api-t2.tiktokv.com",
- "connection": "keep-alive",
- "accept-encoding": "gzip",
- "x-ss-req-ticket": str(int(time.time())) + "000", #1658943304818",
- "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
- "user-agent": "com.ss.android.ugc.trill/247 (Linux; U; Android 11; fr_FR; SM-N970F; Build/RP1A.200720.012; Cronet/58.0.2991.0)"
- }
- response = requests.post(url, data=payload, headers=headers, params=querystring)
- print(response.json())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement