ulthar.xyz > Repos

dotfiles

Seven years worth of accumulated configuration cruft
About Files Commits git clone https://ulthar.xyz/repos/dotfiles/dotfiles.git

dotfiles/scripts/.local/bin/wgeta

Download raw file: scripts/.local/bin/wgeta

#!/bin/sh

[ -z "$1" ] && {
	printf "Scrape a whole website. Usage: wgeta [url]\n"
	exit
}

get_domain() {
	echo "$1" | sed "s/^http:\/\///; s/^https:\/\///" | cut -d '/' -f1
}

wget \
	--recursive \
	--no-parent \
	--convert-links \
	--html-extension \
	--page-requisites \
	--domain "$(get_domain "$1")" \
	"$1"
Generated 2025-03-07 15:24:27 -0700 by RepoRat