Download a Webpage for Offline Access

28 August 2021 · 1 min read · wget, shellfu, network, terminal

Contents

Sometimes it is useful to download/mirror a webpage locally so that you can access it without an internet connection (e.g., download documentation for a library or tool). This is easily done via wget. The following command shows all the necessary parameters:

1
wget --no-check-certificate --no-clobber --page-requisites -m -np -k https://www.foo.com