I would like to take a complete snapshot of website using JavaScript, like the one a browser take when saving the page as HTML (picture below).
By using a simple script like document.documentElement.innerHTML
, the HTML part of a website can be obtained. However, it does not contain the linked style sheets.
To achieve this, I guess I have to get all resources the website loads. Is it possible?