Radjah

gelboorupool.sh

Nov 24th, 2013
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. uag="Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729)"
  4.  
  5. dldr='aria2c --remote-time'
  6. if [ ! -d $2 ]
  7. then
  8. echo Creating $2
  9. mkdir "$2"
  10. else
  11. dldr='wget -nc'
  12. fi
  13. echo Entering $2
  14. cd "$2"
  15.  
  16. poolid=$1
  17.  
  18. # Получаем все ссылки на изображения с одной страницы
  19.  
  20. curl "http://gelbooru.com/index.php?page=pool&s=show&id=$1"|pcregrep -o -e 'src=\"http\:\/\/cdn[^\"]+'|sed -e s/thumbs/images/g -e s/thumbnail_//g -e s/src=\"//g > get.pool.gelbooru.txt
  21.  
  22. $dldr -i get.pool.gelbooru.txt
Advertisement
Add Comment
Please, Sign In to add comment