How to download webpage with all related content using phantomjs
<p>I want to download an entire webpage along with content (including the css, javascripts, images, external resources) that may be required to render the webpage in any browser using PhantomJS. I do not want to execute scripts but simply parse the css and javascripts for more links to contents and download them too.</p>

<p>I tried using tools like wget (does exactly what I need but is very slow because it uses a single tcp connection to the webserver) and httrack (downloads entire websites, in my case I want to download only contents which are required to render the page by recursively parsing links in files). I am currently trying to use phantomjs for the purpose but could not find the right way to use it.</p>

<p>Any help/pointer is highly appreciated.</p>