I am familiar with how to use the Google Chrome Web Inspector to manually save a webpage as a HAR file with the content. I would like to automate this.
In my searches for tools to automate the generation of a HAR file, I have found some solutions, but none of them save the content of the resources.
I have tried the following without any luck:
- https://github.com/ariya/phantomjs/blob/master/examples/netsniff.js
- https://github.com/cyrus-and/chrome-har-capturer
Getting the content of the page you requested (the raw HTML) is doable, but getting the content of every other network resource that loads (CSS, javascript, images, etc) is what my problem is.