这个key是啥玩意……
[Python] 纯文本查看 复制代码 import requests
import re
import pprint
url = "https://web-api.poco.cn/v1_1/space/get_user_works_list"
data = {
'req': {
'version': '1.1.0',
'app_name': 'poco_photography_web',
'os_type': 'weixin',
'is_enc': 0,
'env': 'prod',
'ctime': 1638773668998,
'param': {
'user_id': 'null',
'visited_user_id': 54783548,
'keyword': '',
'year': 0,
'works_type': 0,
'length': 18,
"start": 0
},
'sign_code': 'fd0bd0bf6b84a171e26'
},
# 'host_port': 'https: //www.poco.cn'
}
header = {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'Referer': 'https://www.poco.cn/user/id54783548',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 ',
}
request = requests.post(url=url, data=data, headers=header,).json()
pprint.pprint(request)
|