目前还没有找到可执行自动写入登录 cookie 的方法,暂时写死,通过 charles 获取 cookie、token 以及接口请求需要的 jsondata 格式,进行接口测试,r.requests(url,cookies=xxx,data=xxx)
#5 楼 @wanxi3 强调 Python3 因为我用的 python3 呀,难道我用 3 要去强调 2
—— 来自 TesterHome 官方 安卓客户端
#1 楼 @onecd 添加 headers 还是没有请求成功,#req_new = requests.post(newurl,headers=headers,cookies=cookies) 格式不对吗?
#2 楼 @chenhengjie123 sorryy,第一次发帖不懂格式,已修改