2、Ctrl + F ----> function OnBeforeResponse
3、粘贴以下代码到图下位置
try{
if(oSession.fullUrl.Contains("mp.weixin.qq.com")) {
if(oSession.fullUrl.Contains("getmediadata")) {
return;
}
oSession.utilDecodeResponse();
var fso;
var file;
fso = new ActiveXObject("Scripting.FileSystemObject");
file = fso.OpenTextFile("C:/Users/Administrator/OneDrive/all_huaqiu/secondary_project/wechat_spider/logs/response.txt",8 ,true, true);
file.writeLine("" + oSession.responseCode);
file.writeLine(oSession.GetResponseBodyAsString());
file.close();
}
}catch(e: Exception){
}
网友评论