Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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