在Linux中,下载用的命令通常是wget。但是wget命令是单线程的,也就是说在下载国外的某些软件时容易断开连接,这也就意味着,本机会死机。
下载视频,可以使用you-get下载,默认下载格式为flv,you-get下载工具是python语言编写,所以需要先安装python3-pip工具,然后使用pip工具再安装you-get下载工具。
[root@x112 linshi]# dnf install python3-pip Extra Packages for Enterprise Linux 7 - x86_64 13 MB/s | 16 MB 00:01 CentOS-7 - Base - mirrors.aliyun.com 6.2 MB/s | 10 MB 00:01 CentOS-7 - Updates - mirrors.aliyun.com 8.3 MB/s | 3.2 MB 00:00 CentOS-7 - Extras - mirrors.aliyun.com 793 kB/s | 275 kB 00:00 Last metadata expiration check: 0:00:01 ago on Fri 10 Jul 2020 05:17:35 PM CST. Dependencies resolved. ============================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================= Installing: python3-pip noarch 9.0.3-7.el7_7 updates 1.8 M Installing dependencies: python3 x86_64 3.6.8-13.el7 base 69 k python3-libs x86_64 3.6.8-13.el7 base 7.0 M python3-setuptools noarch 39.2.0-10.el7 base 629 k Transaction Summary ============================================================================================================================================================================================= Install 4 Packages Total download size: 9.4 M Installed size: 48 M Is this ok [y/N]: y Downloading Packages: (1/4): python3-setuptools-39.2.0-10.el7.noarch.rpm 6.0 MB/s | 629 kB 00:00 (2/4): python3-3.6.8-13.el7.x86_64.rpm 600 kB/s | 69 kB 00:00 (3/4): python3-libs-3.6.8-13.el7.x86_64.rpm 24 MB/s | 7.0 MB 00:00 (4/4): python3-pip-9.0.3-7.el7_7.noarch.rpm 7.9 MB/s | 1.8 MB 00:00 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 25 MB/s | 9.4 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : python3-libs-3.6.8-13.el7.x86_64 1/4 Installing : python3-setuptools-39.2.0-10.el7.noarch 2/4 Installing : python3-pip-9.0.3-7.el7_7.noarch 3/4 Installing : python3-3.6.8-13.el7.x86_64 4/4 Verifying : python3-3.6.8-13.el7.x86_64 1/4 Verifying : python3-libs-3.6.8-13.el7.x86_64 2/4 Verifying : python3-setuptools-39.2.0-10.el7.noarch 3/4 Verifying : python3-pip-9.0.3-7.el7_7.noarch 4/4 Installed: python3-pip-9.0.3-7.el7_7.noarch python3-3.6.8-13.el7.x86_64 python3-libs-3.6.8-13.el7.x86_64 python3-setuptools-39.2.0-10.el7.noarch Complete! [root@x112 linshi]# pip3 install you-get WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. Collecting you-get Downloading https://files.pythonhosted.org/packages/24/bf/22a3c582dfd4969bace5eb287acfb9264e4999602312b3cf879ea0beff48/you_get-0.4.1432-py3-none-any.whl (215kB) 100% |████████████████████████████████| 225kB 20kB/s Installing collected packages: you-get Successfully installed you-get-0.4.1432 [root@x112 linshi]#
最新评论