#!/usr/local/bin/bash # create a local mirror for a website useragent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" if [ "$#" -lt 1 ] then echo "No arguments supplied" exit 1 fi wget2 \ --mirror \ --continue \ --no-parent \ --convert-links \ --adjust-extension \ --page-requisites \ --robots=off \ --user-agent="$useragent" \ --wait=2 \ --random-wait \ $@