Created
May 21, 2017 08:44
-
-
Save baamenabar/67fce5b17cde8bf60b33c7272f891fbb to your computer and use it in GitHub Desktop.
Get network data only for docs from Chrome .har file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// you can load the har however you like. | |
var har = 'paste json har content here'; | |
har.log.pages.forEach(item => { | |
item.data = har.log.entries.find(element => { | |
return element.request.url == item.title; | |
}); | |
console.log(JSON.stringify(item.data)); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment