fidler 数据保存到本地
找到 OnBeforeResponse,在后面添加如下代码
if (oSession.fullUrl.Contains("edith.xiaohongshu.com/api/sns/v10/search/notes?keyword")) { oSession.utilDecodeResponse();//消除保存的请求可能存在乱码的情况 var fso; var file; fso = new ActiveXObject("Scripting.FileSystemObject"); fso.Charset = "utf-8"; //文件保存路径,可自定义 file = fso.OpenTextFile("D:\\1\\1.txt",8 ,true, true); file.writeLine("Response code: " + oSession.responseCode); file.writeLine("Response body: " + oSession.GetResponseBodyAsString()); file.writeLine("\n"); file.writeLine("=================="); file.writeLine("\n"); file.close(); }
如果觉得对您有帮助,麻烦您点一下推荐,谢谢!
好记忆不如烂笔头
好记忆不如烂笔头