Skip to content

Instantly share code, notes, and snippets.

@baamenabar
Created May 21, 2017 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baamenabar/67fce5b17cde8bf60b33c7272f891fbb to your computer and use it in GitHub Desktop.
Save baamenabar/67fce5b17cde8bf60b33c7272f891fbb to your computer and use it in GitHub Desktop.
Get network data only for docs from Chrome .har file
// 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