Advertisement
Guest User

Untitled

a guest
Jun 8th, 2018
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. 4chan image scraper bash script
  2. #!/bin/bash
  3.  
  4. if [[ -z "$1" ]]; then
  5. echo "You must specify a 4chan thread.";
  6. exit 1;
  7. fi
  8.  
  9. `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`
  10.  
  11.  
  12. imgfap.com image scraper bash script
  13. #!/bin/bash
  14.  
  15. if [[ -z "$1" ]]; then
  16. echo "Run like ""$0"" http://www.imagefap.com/pictures/1234567/Title";
  17. exit 1;
  18. fi
  19.  
  20. URL="$1""?view=2";
  21. LIST=`curl -s "$URL" | grep -Eo '<a name="[0-9]+" href="/photo/[0-9]+/[^\"]+">' | sed 's/^.*href=.\(.*\)?pgid.*$/http:\/\/imagefap.com\1/g'`
  22. BUFFER=`echo "$LIST" | xargs -n 1 -P16 wget -qnc -O -`
  23. echo "$BUFFER" | grep -Eo '"contentUrl": "[^\"]+",' | sed 's/^.*\":.\"\(.*\)\",.*$/\1/g' | xargs -n 1 -P 16 wget -qnc
  24.  
  25. copyright niggerlord 2018
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement