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.