mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-02-19 22:30:49 +08:00
chore(tools): 添加解密与资源调试脚本
- 增加解密/资源/表情/媒体定位等调试脚本,便于本地排查与验证
This commit is contained in:
17
tools/test_image_api.py
Normal file
17
tools/test_image_api.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
"""测试图片 API"""
|
||||
import requests
|
||||
|
||||
r = requests.get(
|
||||
'http://localhost:8000/api/chat/media/image',
|
||||
params={
|
||||
'account': 'wxid_v4mbduwqtzpt22',
|
||||
'md5': '8753fcd3b1f8c4470b53551e13c5fbc1',
|
||||
'username': 'wxid_qmzc7q0xfm0j22'
|
||||
}
|
||||
)
|
||||
print(f'Status: {r.status_code}')
|
||||
print(f'Content-Type: {r.headers.get("content-type")}')
|
||||
print(f'Content-Length: {len(r.content)}')
|
||||
if r.status_code != 200:
|
||||
print(f'Response: {r.text[:500]}')
|
||||
Reference in New Issue
Block a user