scripts/4chandl.sh

5 lines
256 B
Bash
Executable File

#!/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