Skip to content

Instantly share code, notes, and snippets.

@KebabLord
Created July 29, 2020 11:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KebabLord/c1e45fd6ed8c37d4cbcd6144237ec718 to your computer and use it in GitHub Desktop.
Save KebabLord/c1e45fd6ed8c37d4cbcd6144237ec718 to your computer and use it in GitHub Desktop.
download all media from an alt-board on image boards
#!/usr/bin/bash
# Board All Media Downloader by Jumbo
TARGET="https://8kun.top"
SUB_DOMAIN="media.8kun.top"
BOARD="/cyber/"
FORMATS="webm,mp4,jpg,png,gif"
curl ${TARGET}${BOARD}catalog.html |
grep -Eoi '<a [^>]+>' |
grep "${BOARD}res" |
awk -F '"' '{print $2}' |
xargs -L 1 -I % wget -nd -nc -r -l 1 -D $SUB_DOMAIN -A $FORMATS -H $TARGET%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment