Export data from Chrome developer tool

2020-05-11 10:26发布

enter image description here

Network analysis by Chrome when page loads

I would like to export this data to Microsoft Excel so that I will have a list of similar data when loaded at diffrent times. Loading a page one time doesn't really tell me much especially if I want to compare pages.

Is it possible to do this via a tool or chrome extension ?

12条回答
倾城 Initia
2楼-- · 2020-05-11 11:06

if you right click on any of the rows you can export the item or the entire data set as HAR which appears to be a JSON format.

It shouldn't be terribly difficult to script up something to transform that to a csv if you really need it in excel, but if you're already scripting you might as well just use the script to ask your questions of the data.

If anyone knows how to drive the "load page, export data" part of the process from the command line I'd be quite interested in hearing how

查看更多
Anthone
3楼-- · 2020-05-11 11:06

To get this in excel or csv format- right click the folder and select "copy response"- paste to excel and use text to columns.

查看更多
我想做一个坏孩纸
4楼-- · 2020-05-11 11:09

In more modern versions of Chrome you can just drag a .har file into the network tab of Chrome Dev Tools to load it.

查看更多
倾城 Initia
5楼-- · 2020-05-11 11:10

I came across the same problem, and found that easier way is to undock the developer tool's video to a separate window! (Using the right hand top corner toolbar button of developer tools window) and in the new window , simply say select all and copy and paste to excel!!

查看更多
萌系小妹纸
6楼-- · 2020-05-11 11:11

from Chrome 76, you have Import/Export buttons.

enter image description here

查看更多
乱世女痞
7楼-- · 2020-05-11 11:19

I was trying to copy the size data measured from Chrome Network and stumbled on this post. I just found an easier way to "export" the data out to excel which is to copy the table and paste to excel.

The trick is click Control + A (select all) and once the entire table will be highlighted, paste it to Microsoft Excel. The only issue is if there are too many fields, not all rows are copied and you might have to copy and paste several times.

UPDATED: I found that copying the data only works when I turn off the filter options (the funnel-looking button above the table). – bendur

查看更多
登录 后发表回答