Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

No matter what browser I've tried (even Chrome), when saving a web page as local files, it's never quite exact. Lots of JavaScript & such seems to trip it up. I'm looking for some way to get a 100% perfect local copy of a web page. In other words, all CSS/images/JavaScripts should pull down as well AND the HTML references to said content should be changed to point to a local folder. Is there a way to do this? I'm primarily on a Mac but I have access to Linux.

share|improve this question
    
The Mozilla Archive Format extension for Firefox can save a static snapshot of the DOM, after Javascript has run in the browser. –  Mechanical snail Feb 20 at 22:08
add comment

3 Answers 3

up vote 7 down vote accepted

The reason "Lots of JavaScript & such seems to trip it up" is probably that so many companies use content management systems (Joomla, Drupal and Wordpress) , which use those to query databases for content. If that is the case, you will not get the whole page like you want. So it depends on the web page.

share|improve this answer
add comment

Try downloading the website using HTTrack. The options allow you to configure how the locally downloaded files will be linked, and what exactly is downloaded. Windows, Linux, and Mac builds are available.

share|improve this answer
add comment

If you are on Linux then you might want to give a try to this command. "wget" - without quote. I offers more flexibility to download from the Internet.

Example:- on terminal type wget -m "www.example.com"

m stands for Mirror(of a website). You can also specify depth for downloading a website.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.