Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 4chan image scraper bash script
- #!/bin/bash
- if [[ -z "$1" ]]; then
- echo "You must specify a 4chan thread.";
- exit 1;
- fi
- `curl -s "$1" | grep -Eo '<a class="fileThumb" href="//[0-9a-zA-Z]+\.4chan.org/[a-zA-Z0-9]+/[0-9]+\.[a-zA-Z0-9]+" target' | sed 's/^.*href..\(.*\)..target.*$/https:\1/g' | xargs -n 1 -P 16 wget -qnc`
- imgfap.com image scraper bash script
- #!/bin/bash
- if [[ -z "$1" ]]; then
- echo "Run like ""$0"" http://www.imagefap.com/pictures/1234567/Title";
- exit 1;
- fi
- URL="$1""?view=2";
- LIST=`curl -s "$URL" | grep -Eo '<a name="[0-9]+" href="/photo/[0-9]+/[^\"]+">' | sed 's/^.*href=.\(.*\)?pgid.*$/http:\/\/imagefap.com\1/g'`
- BUFFER=`echo "$LIST" | xargs -n 1 -P16 wget -qnc -O -`
- echo "$BUFFER" | grep -Eo '"contentUrl": "[^\"]+",' | sed 's/^.*\":.\"\(.*\)\",.*$/\1/g' | xargs -n 1 -P 16 wget -qnc
- copyright niggerlord 2018
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement