Export data from Chrome developer tool

前端 未结 12 1798
轮回少年
轮回少年 2021-01-30 02:02

\"enter

Network analysis by Chrome when page loads

I would like to export this d

12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 02:43

    Note that ≪Copy all as HAR≫ does not contain response body.

    You can get response body via ≪Save as HAR with Content≫, but it breaks if you have any more than a trivial amount of logs (I tried once with only 8k requests and it doesn't work.) To solve this, you can script an output yourself using _request.contentData().

    When there's too many logs, even _request.contentData() and ≪Copy response≫ would fail, hopefully they would fix this problem. Until then, inspecting any more than a trivial amount of network logs cannot be properly done with Chrome Network Inspector and its best to use another tool.

提交回复
热议问题