Created
July 29, 2020 11:44
-
-
Save KebabLord/c1e45fd6ed8c37d4cbcd6144237ec718 to your computer and use it in GitHub Desktop.
download all media from an alt-board on image boards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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