01、下載#
wget http://www.ha97.com/code/axel-2.4.tar.gz
wget https://files.cnblogs.com/files/xiaochina/axel-2.4.tar.gz
02、編譯安裝#
tar zxvf axel-2.4.tar.gz
cd axel-2.4
./configure
make -s
make install -s
03、參數#
[root@mvp ~]# axel -h
Usage: axel [options] url1 [url2] [url...]
--max-speed=x -s x Specify maximum speed (bytes per second) //速度限制
--num-connections=x -n x Specify maximum number of connections //連接數
--output=f -o f Specify local output file
--search[=x] -S [x] Search for mirrors and download from x servers
--header=x -H x Add header string
--user-agent=x -U x Set user agent
--no-proxy -N Just don't use any proxy server
--quiet -q Leave stdout alone
--verbose -v More status information
--alternate -a Alternate progress indicator //進度條(交替顯示)
--help -h This information
--version -V Version information
04、實踐#
axel -a -n 10 -s url
參數如下:
一般使用:axel url(下載文件地址);
限速使用:-s 10240,即每秒下載的字節數,這里是 10 Kb;
限制連接數:-n 10,即打開10個連接
axel -a -n 10 http://xxx.com/xxx.iso
原文連接:https://www.cnblogs.com/xiaochina/p/8516875.html
批量下載視頻
sudo apt install python3-pip
pip3 install you-get
先查看視頻所支持的格式
you-get -i https://www.bilibili.com/video/BV1iA411E7nS
按自己選擇的格式下載視頻
批量下載:you-get --playlist --format=flv https://www.bilibili.com/video/BV1iA411E7nS
單獨下載:you-get --format=flv https://www.bilibili.com/video/BV1iA411E7nS?from=search&seid=11948195820490696469