Offline Website Copy

To get a local copy of a website for offline use, you can use the wget command as follows:

  1. Create a folder and navigate to it via the terminal.
mkdir <folder> && cd <folder>
  1. Run the command below with your <site_url>
wget --mirror --level=1 --no-directories --convert-links --adjust-extension --page-requisites --no-parent <site_url>

Here’s what the options mean:

h/t to Nikkin

November 30, 2024 · TIL