Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- 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)"
- dldr='aria2c --remote-time'
- if [ ! -d $2 ]
- then
- echo Creating $2
- mkdir "$2"
- else
- dldr='wget -nc'
- fi
- echo Entering $2
- cd "$2"
- poolid=$1
- # Получаем все ссылки на изображения с одной страницы
- 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
- $dldr -i get.pool.gelbooru.txt
Advertisement
Add Comment
Please, Sign In to add comment