5 lines
256 B
Bash
5 lines
256 B
Bash
|
#!/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
|