Files
WeChatDataAnalysis/tools/test_image_api.py
2977094657 ebc68de8a8 chore(tools): 添加解密与资源调试脚本
- 增加解密/资源/表情/媒体定位等调试脚本,便于本地排查与验证
2025-12-17 16:59:49 +08:00

18 lines
484 B
Python

#!/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]}')