Skip to content

Instantly share code, notes, and snippets.

@Winiex
Last active March 8, 2018 05:48
Show Gist options
  • Save Winiex/58a32481d2581991946e to your computer and use it in GitHub Desktop.
Save Winiex/58a32481d2581991946e to your computer and use it in GitHub Desktop.
批量下载 IT 公论播客音频,节目爱好者收藏或备份用。需要安装 axel。
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
下载脚本文件后执行:
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