Use wget to download entire web site for local browsing

wget \
     --recursive \
     --no-clobber \
     --page-requisites \
     --html-extension \
     --convert-links \
     --restrict-file-names=windows \
     --domains www.ffd2.com \
     --no-parent \
         http://www.ffd2.com/fridge/chacking/

This command downloads the web site http://www.ffd2.com/fridge/chacking/.

The options are:

  • –recursive: download the entire Web site.
  • –domains www.ffd2.com: don’t follow links outside www.ffd2.com.
  • –no-parent: don’t follow links outside the directory fridge/chacking/.
  • –page-requisites: get all the elements that compose the page (images, CSS and so on).
  • –html-extension: save files with the .html extension.
  • –convert-links: convert links so that they work locally, off-line.
  • –restrict-file-names=windows: modify filenames so that they will work in Windows as well.
  • –no-clobber: don’t overwrite any existing files (used in case the download is interrupted and resumed).

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.