Created
January 4, 2016 16:25
-
-
Save mnsami/a8ccbbf6768985562253 to your computer and use it in GitHub Desktop.
wget to download website for offline viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
wget=/usr/bin/wget | |
if [ ! -x "$wget" ]; then | |
echo "ERROR: No wget." >&2 | |
exit 1 | |
fi | |
# This script is to download website to make it available for offline viewing. | |
$wget --recursive --page-requisites --html-extension --convert-links $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment