Skip to content

Instantly share code, notes, and snippets.

@vjvelascorios
Created March 24, 2024 21:47
Show Gist options
  • Save vjvelascorios/4dc8c9bcf8e776d7442633f23c593555 to your computer and use it in GitHub Desktop.
Save vjvelascorios/4dc8c9bcf8e776d7442633f23c593555 to your computer and use it in GitHub Desktop.
mkdir="~/localsites"
base_dir="/home/vjvelascorios/localsites"
for url in "$@"
do
sitio=$(echo "$url" | awk -F[/:] '{print $4}')
mkdir -p "$base_dir/$sitio"
httrack "$url" -O "$base_dir/$sitio"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment