Skip to content

Instantly share code, notes, and snippets.

@v9n
Created March 4, 2011 00:03
Show Gist options
  • Select an option

  • Save v9n/853883 to your computer and use it in GitHub Desktop.

Select an option

Save v9n/853883 to your computer and use it in GitHub Desktop.
Comic Download
#!/bin/sh
#http://60s.com.vn/image/truyentranh/comic/1zdsssdfxfdyhxjtgiu87xaxz65tx0dfgtthyux761xx/daubeptrudanh/tap9/img/Untitled-24.jpg
hashKey='1zdsssdfxfdyhxjtgiu87xaxz65tx0dfgtthyux761xx'
comicName='daubeptrudanh'
episode=1
maxEpisode=37
startPage=1
endPage=211
mkdir "$comicName"
for i in $(seq $episode 1 $maxEpisode)
do
mkdir "$comicName/tap$i"
echo "Created folder tap$i "
cd "$comicName/tap$i"
for page in $(seq $startPage 1 $endPage)
do
wget "http://60s.com.vn/image/truyentranh/comic/$hashKey/$comicName/tap$i/img/Untitled-$page.jpg"
done
cd ../..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment