Saving a Website for Offline Use

Using wget, you can download an entire website for offline access with this command:

wget -rkpNc -e robots=off http://www.example.com/

Parameters Explained

  • -r: Download pages recursively.
  • -k: Adjust links for local viewing.
  • -p: Fetch all resources (images, scripts).
  • -N: Only download new or modified files.
  • -e robots=off: Ignore robots.txt restrictions.
  • -c: Continue the download if interrupted.

With this command, wget reliably saves the entire site for offline use.