Last active
September 8, 2019 04:08
-
-
Save yougg/8214db7cf3d885b0ed7f38aec385e9f1 to your computer and use it in GitHub Desktop.
AC娘表情包图片下载脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#AC娘表情包 01-54 | |
#http://cdn.aixifan.com/dotnet/20130418/umeditor/dialogs/emotion/images/ac/01.gif?v=0.1 | |
#匿名版表情包 01-40 | |
#http://cdn.aixifan.com/dotnet/20130418/umeditor/dialogs/emotion/images/ais/01.gif?v=0.1 | |
#AC新娘表情包 01-55 | |
#http://cdn.aixifan.com/dotnet/20130418/umeditor/dialogs/emotion/images/ac2/01.gif?v=0.1 | |
#AC先锋表情包 01-21 | |
#http://cdn.aixifan.com/dotnet/20130418/umeditor/dialogs/emotion/images/blizzard/01.gif?v=0.1 | |
#AC彩娘表情包 01-50 | |
#http://cdn.aixifan.com/dotnet/20130418/umeditor/dialogs/emotion/images/ac3/01.gif?v=0.1 | |
#AC犬娘表情包 01-16 | |
#http://cdn.aixifan.com/dotnet/20130418/umeditor/dialogs/emotion/images/dog/01.gif?v=0.1 | |
url='http://cdn.aixifan.com/dotnet/20130418/umeditor/dialogs/emotion/images/%s/%s.gif?v=0.1' | |
#创建并进入一个临时目录 | |
cd `mktemp -d` | |
mkdir -p ac ais ac2 blizzard ac3 dog | |
#开始下载图片 | |
cd ac | |
for i in `seq -f "%02.f" 1 54`; do | |
f=`printf $url ac $i` | |
curl -ks -o "${i}.png" -L'#' "$f" | |
done | |
cd ../ais | |
for i in `seq -f "%02.f" 1 40`; do | |
f=`printf $url ais $i` | |
curl -ks -o "${i}.png" -L'#' "$f" | |
done | |
cd ../ac2 | |
for i in `seq -f "%02.f" 1 55`; do | |
f=`printf $url ac2 $i` | |
curl -ks -o `basename "$f" '?v=0.1'` -L'#' "$f" | |
done | |
cd ../blizzard | |
for i in `seq -f "%02.f" 1 21`; do | |
f=`printf $url blizzard $i` | |
curl -ks -o `basename "$f" '?v=0.1'` -L'#' "$f" | |
done | |
cd ../ac3 | |
for i in `seq -f "%02.f" 1 50`; do | |
f=`printf $url ac3 $i` | |
curl -ks -o `basename "$f" '?v=0.1'` -L'#' "$f" | |
done | |
cd ../dog | |
for i in `seq -f "%02.f" 1 16`; do | |
f=`printf $url dog $i` | |
curl -ks -o `basename "$f" '?v=0.1'` -L'#' "$f" | |
done | |
cd .. | |
echo "下载完成 进入${PWD}目录查看" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment