Chrome Devtools:在“网络”标签中保存特定请求 [英] Chrome Devtools: Save specific requests in Network Tab

查看:894
本文介绍了Chrome Devtools:在“网络”标签中保存特定请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在Chrome Devtools网络标签中保存特定的请求吗?

Can I save just specific requests in the Chrome Devtools Network tab?

这对我来说非常有用,因为我们公司使用网络抓取来从外网获取信息,我能做的最多就是记录(使用rec按钮)为特定信息提供的所有请求,如果我想在文件中保存所需的请求/响应以便稍后进行分析,我所能做的就是将它全部保存为.har文件,它可以保存所有内容,包括每个资源(图像,css,js等),为我的目的填充大量无用的信息。

It would be very useful to me since our company uses web crawling to fetch info from extranets, and the most I can do is to record (with the rec button) all the requests made to reach for a specific info, and if I want to save the desired requests/responses in a file to analyze them later, all I can do is to save it all as a .har file, which saves EVERYTHING, including every resource (images, css, js, etc), filling the file with lots of useless info for my purpose.

另一种方法是复制和粘贴使用Documents + XHR + Other过滤的请求,我不喜欢这些请求,因为它没有像HAR文件那样以JSON格式构建。

Another way would be to copy and paste just the requests filtered with Documents + XHR + Other, which I don't like either because it's not structured in a JSON format like the HAR file does.

推荐答案

有一个名为Network.Recorder的Chrome扩展程序,当点击ext图标时会保留网络请求,当单击关闭时,会提示您将内容保存到当地的乐。这可能会有所帮助。

There is a chrome extension named Network.Recorder which retains Network Requests when ext icon is clicked on, and when clicked off, prompts you to save content to a local file. This might help.

这篇关于Chrome Devtools:在“网络”标签中保存特定请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆