Create a gist now

Instantly share code, notes, and snippets.

@spaghetti- /
Last active Jan 15, 2017

What would you like to do?
Download all images from a specified 4chan thread to disk, in parallel.
function 4get() {
curl -k -s $1 | egrep -o \
"\/\/is2\.4chan\.org\/gif\/\d+\.(webm|gif|jpeg|jpg|png)" | \
sed 's/^/https:/; s/is\d?\.4chan\.org/i\.4cdn\.org/' | uniq | \
xargs -n 1 -P 12 curl -# -O
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment