wget script for website download

master
gutmet 2019-01-29 20:50:55 +01:00
parent 29e83c02c1
commit b04939910c
1 changed files with 15 additions and 0 deletions

15
websitedl Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 DOMAIN SITE"
exit 1
fi
wget \
--recursive \
--level 0 \
--page-requisites \
--convert-links \
--domains "$1" \
--no-parent \
"$2"