Commit f9a063f6 authored by Valo's avatar Valo
Browse files

add 4chan/8chan downloader

parents
#!/bin/sh
#4format: 48chdl https://boards.4chan.org/___/thread/____
#8format: 48chdl https://boards.8ch.net/___/thread/____
case "$@" in
(*'4chan.org'*) DIRNAME=$(echo "$@" | sed -r 's/.+s\.(4chan).+g\/(.+)\/.+d\/(.+.)/\1\/\2\/\3/') ; wget -P "$DIRNAME" -nd -r -l 1 -H -D i.4cdn.org -A png,gif,jpg,jpeg,webm "$@" ;;
(*'8ch.net'*) DIRNAME=$(echo "$@" | sed -r 's/.+\/(8ch).+(\/.+\/).+\/(.+)\..+/\1an\2\3/') ; wget -P "$DIRNAME" -nd -r -l 1 -H -D media.8ch.net -A png,gif,jpg,jpeg,webm "$@" ;;
esac
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment