Skip to content

Instantly share code, notes, and snippets.

@ompugao
Created March 21, 2015 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ompugao/07afac0d2211995d39d1 to your computer and use it in GitHub Desktop.
Save ompugao/07afac0d2211995d39d1 to your computer and use it in GitHub Desktop.
#/bin/bash
download_story()
{
local storynum=$1
local numimages=$2
echo mkdir -p $storynum
mkdir -p $storynum
for i in $(seq 1 $numimages) ; do
echo wget http://tonarinoyj.jp/manga/winnerscircle/$storynum/books/images/2/$i.jpg -O $storynum/$i.jpg
wget http://tonarinoyj.jp/manga/winnerscircle/$storynum/books/images/2/$i.jpg -O $storynum/$i.jpg
sleep 0.3
done
}
#download_story 1 43
#download_story 2 33
#download_story 3 33
#download_story 4 35
#download_story 5 33
#download_story 6 33
#download_story 7 33
#download_story 8 33
#download_story 9 33
#download_story 10 33
#download_story 11 33
#download_story 12 37
#download_story 13 33
#download_story 14 33
#download_story 15 33
#download_story 16 33
#download_story 17 33
#download_story 18 33
#download_story 19 25
#download_story 20 19
#download_story 21 27
#download_story 22 13
#download_story 23 25
#download_story 24 17
#download_story 25 37
#download_story 26 33
#download_story 27 33
#download_story 28 33
#download_story 29 33
#download_story 30 33
#download_story 31 33
#download_story 32 33
#download_story 33 33
#download_story 34 33
#download_story 35 17
#download_story 36 17
#download_story 37 13
#download_story 38 21
#download_story 39 19
#download_story 40 15
#download_story 41 33
#download_story 42 25
#download_story 43 25
#download_story 44 15
download_story 45 19
download_story 46 17
download_story 47 17
download_story 48 17
download_story 49 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment