These wget recipes show you how to download a full website for offline viewing by using the --mirror argument.

Mirror a Site for Offline Use

wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://example.com

This recipe mirrors the whole site using several wget options. --mirror enables recursive downloading. --convert-links makes links point to local files. --adjust-extension saves files with proper extensions. --page-requisites grabs everything needed to view pages offline. --no-parent prevents going up directories.

Created by Browserling

These wget recipes were written down by me and my team at Browserling. We use recipes like this every day to get things done and improve our product. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!

Secret message: If you love my wget recipe, then I love you, too! Use coupon code WGETLING to get a discount at my company.