加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
好快的车车.har 4.21 KB
一键复制 编辑 原始数据 按行查看 历史
[{"comment":"获取Token","request":{"method":"GET","url":"https://cheche.one/login/","headers":[{"name":"Host","value":"cheche.one"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Referer","value":"https://cheche.one/"},{"name":"Upgrade-Insecure-Requests","value":"1"},{"name":"DNT","value":"1"},{"name":"Connection","value":"keep-alive"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"re":"name=\"_xfToken\" value=\"(.+?)\"","from":"content","name":"token"}]}},{"comment":"登录","request":{"method":"POST","url":"https://cheche.one/login/login","headers":[{"name":"Host","value":"cheche.one"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Content-Type","value":"application/x-www-form-urlencoded"},{"name":"Referer","value":"https://cheche.one/login/"},{"name":"Origin","value":"https://cheche.one"},{"name":"DNT","value":"1"},{"name":"Upgrade-Insecure-Requests","value":"1"},{"name":"Connection","value":"keep-alive"}],"cookies":[],"data":"login={{username|urlencode}}&password={{password|urlencode}}&remember=1&_xfRedirect=https%3A%2F%2Fcheche.one%2F&_xfToken={{token|urlencode}}","mimeType":"application/x-www-form-urlencoded"},"rule":{"success_asserts":[{"re":"303","from":"status"}],"failed_asserts":[],"extract_variables":[]}},{"comment":"获取Token","request":{"method":"GET","url":"https://cheche.one/mjc-credits/","headers":[{"name":"Host","value":"cheche.one"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"Referer","value":"https://cheche.one/mjc-credits/"},{"name":"Upgrade-Insecure-Requests","value":"1"},{"name":"DNT","value":"1"},{"name":"Connection","value":"keep-alive"},{"name":"If-Modified-Since","value":"Fri, 05 Feb 2021 03:55:12 GMT"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"re":"name=\"_xfToken\" value=\"(.+?)\"","from":"content","name":"token1"}]}},{"comment":"获取积分","request":{"method":"GET","url":"https://cheche.one/mjc-credits/wallet?_xfRequestUri=%2Fmjc-credits%2F&_xfWithData=1&_xfToken={{token1|urlencode}}&_xfResponseType=json","headers":[{"name":"Host","value":"cheche.one"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0"},{"name":"Accept","value":"application/json, text/javascript, */*; q=0.01"},{"name":"Accept-Language","value":"zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"},{"name":"Accept-Encoding","value":"gzip, deflate, br"},{"name":"X-Requested-With","value":"XMLHttpRequest"},{"name":"DNT","value":"1"},{"name":"Referer","value":"https://cheche.one/mjc-credits/"},{"name":"Connection","value":"keep-alive"}],"cookies":[],"data":"","mimeType":""},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"re":"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t(.+?)\\\\n","from":"content","name":"log_value"}]}},{"comment":"生成日志","request":{"method":"GET","url":"http://localhost/util/string/replace?r=text&t=%C2%A0&p=%C2%A0&s=%E5%BD%93%E5%89%8D%E6%B1%BD%E6%B2%B9%3A{{log_value|urlencode}}","headers":[],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"re":".+","from":"content","name":"__log__"}]}}]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化