From 445e2b5721df07b3d833335c237ac3f83749614b Mon Sep 17 00:00:00 2001 From: mrbesen Date: Mon, 7 Sep 2020 19:31:18 +0200 Subject: [PATCH] 4chandl --- 4chandl.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 4chandl.sh diff --git a/4chandl.sh b/4chandl.sh new file mode 100755 index 0000000..67968b3 --- /dev/null +++ b/4chandl.sh @@ -0,0 +1,4 @@ +#!/bin/bash +#download a 4chan thread -> requires curl & wget +url="$1" +curl -s $url | sed 's/>/>\n/g' | grep -e "i\.4cdn\.org" -e "is2\.4chan\.org" | sed -r 's#(^.*\/\/)##g' | cut -d'"' -f1 | wget -nc -i - ; wget -nc --adjust-extension --convert-links $url