声明
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!
逆向过程
url = "https://www.tiktok.com/api/post/item_list/" cp = execjs.compile(open('2026-02-18.js','r',encoding='utf-8').read()) params = { "WebIdLastTime": int(time.time()), "aid": "1988", "app_language": "zh-Hans", "app_name": "tiktok_web", "browser_language": "zh-CN", "browser_name": "Mozilla", "browser_online": "true", "browser_platform": "Win32", "browser_version": "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0", "channel": "tiktok_web", "cookie_enabled": "true", "count": "35", "coverFormat": "2", "cursor": "0", "data_collection_enabled": "false", "device_id": "7599336706046821919", "device_platform": "web_pc", "focus_state": "true", "history_len": "3", "is_fullscreen": "false", "is_page_visible": "true", "language": "zh-Hans", "odinId": "7599346469519115295", "os": "windows", "priority_region": "", "referer": "", "region": "US", "screen_height": "864", "screen_width": "1536", } url = cp.call('tiktok', params) print(url) response = requests.get(url, headers=headers, proxies={"http": "127.0.0.1:7890", "https": "127.0.0.1:7890"}) print(response.text) print(response)
结果
![]()
总结
1.出于安全考虑,本章未提供完整流程,调试环节省略较多,只提供大致思路,具体细节要你自己还原,相信你也能调试出来。