wget

Updated: 14 August 2026

Create an off-line, static copy of a site
--recursive Turn on recursive retrieving, default depth 5.
--page-requisites Download all files necessary to properly display a given HTML page.
--convert-links Make links in downloaded document suitable for local viewing.

wget --recursive --page-requisites --html-extension --convert-links https://example.com

Download a file

wget https://code.jquery.com/jquery-3.6.0.min.js

Download a file and rename

wget -O /put/here/new_name.js https://code.jquery.com/jquery-3.6.0.min.js

Leave a comment