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