Last active
March 8, 2018 05:48
-
-
Save Winiex/58a32481d2581991946e to your computer and use it in GitHub Desktop.
批量下载 IT 公论播客音频,节目爱好者收藏或备份用。需要安装 axel。
This file contains hidden or 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
BASE_URL="http://ipn.li/itgonglun/" | |
POSTFILE="/audio.mp3" | |
for i in $(eval echo {$1..$2}) | |
do | |
URL=$BASE_URL$i$POSTFILE | |
FILENAME=$i".mp3" | |
echo "Now download "$URL | |
axel -n 10 -o $FILENAME $URL | |
done |
This file contains hidden or 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
下载脚本文件后执行: | |
download_itgonglun.sh 1 121 | |
这将下载 1 至 121 期。中途下载失败可以重复执行上述命令,axel 会自动帮你完成断点下载。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment