Created
November 1, 2017 11:36
-
-
Save geofmureithi-zz/13b3e74c013fa9d6ef6c048667daebe2 to your computer and use it in GitHub Desktop.
Website Scrapper
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/bash | |
# Require the URI of a website to be downloaded | |
if [ -z "$1" ]; then | |
echo "Usage: scrapper.sh [URL]..." | |
exit 0 | |
fi | |
dest="" | |
dest=$(date +%F--%T) | |
mkdir $dest | |
wget -k -r -N -p -E -F -nH -P $dest $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment