-
Содержание:
#! /bin/bash
for ((i=1; i<=$1; i++))
do
echo ==== Page $i ==== >>get.konachan.txt
wget "http://konachan.com/post/index?page=$i&tags=$2" -O — |pcregrep -o -e 'href[^ ]+\.[^ ^ico]{4}'|sed -e 's/href\=\"//g' -e 's/\"//g'|grep Konachan >>get.konachan.txt
done;
wget -nc -i get.konachan.txt
Назначение:
Качать картинки с konachan.com по определенному тэгу
Параметры запуска:
get.konachan.sh количество_страниц тэг