ステーションbのビデオをコンピューターにダウンロードします[プロテストに有効]

ステーションbからコンピューターにビデオをダウンロードします[効果的な
プロテスト] 方法1:githubのオープンソースpythonプロジェクトを使用します--- you-get
メソッド機能:ダウンロードが簡単、高速、保証速度はThunderより3M / s速く、デフォルトでダウンロードされるようです最もクリアなバージョンです。私がダウンロードしたものはデフォルトで最もクリアです!国内外の多くのウェブサイトをサポート:
ステーションbのビデオをコンピューターにダウンロードします[プロテストに有効]ステーションbのビデオをコンピューターにダウンロードします[プロテストに有効]
操作方法は次のとおりです:
(1)python3.7(最新)をダウンロードして
インストールします(2)pip3 install you-get
(3)コマンドラインツールに「you-get video link」と入力して[Enter]ボタンをクリックしますダウンロードできます。

例:you-get https://www.bilibili.com/video/BV1LJ411Y7og?p=6

PS:その他の実践的なスキル
(1)取得-i URL各画質のフォーマットパラメータをプレビューします(プレビューのみで、ダウンロードではありません):
追加の「-i」がここにあることに注意してください。ダウンロードを追加すると、最初にプレビューできます。画質の選択では、超精細、高精細、標準精細、スラグ精細を見ることができます。
you-get -i https://www.bilibili.com/video/BV1LJ411Y7og?p=3

(2)you-get --format = dash-flv URLを使用して、指定された画質パラメーターで動画をダウンロード
します。URLを動画リンクに置き換え、入力して入力すると、1080P画質をダウンロードできます。
you-get --format = dash-flv https://www.bilibili.com/video/BV1LJ411Y7og?p=3

ステーションbのビデオをコンピューターにダウンロードします[プロテストに有効]
ステーションbのビデオをコンピューターにダウンロードします[プロテストに有効]
ステーションbのビデオをコンピューターにダウンロードします[プロテストに有効]
ステーションbのビデオをコンピューターにダウンロードします[プロテストに有効]

ステーションbのビデオをコンピューターにダウンロードします[プロテストに有効]

==============
また、biliの特別なビデオではページ番号が後ろに変わるため、バッチダウンロード用のバットを作成できます。
ステーションbのビデオをコンピューターにダウンロードします[プロテストに有効]

その他の方法:次の列を参照して
くださいhttps : //www.zhihu.com/question/41367609
この記事方法もこのリンクからのものです

備考:これはpython3環境である必要があります。以下は、私の会社のcentos7システムで、デフォルトのpython2です。python2を試しましたが、機能しません。yuminstall python3を直接インストールした後、次のように使用できます。


[root@nessus ~]# 
[root@nessus ~]# 
[root@nessus ~]# 
[root@nessus ~]# python
Python 2.7.5 (default, Jun 17 2014, 18:11:42) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> 
>>> 
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> 
>>> quit()
[root@nessus ~]# 
[root@nessus ~]# 
[root@nessus ~]# pip install you-get
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:380: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  SNIMissingWarning,
/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:139: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning,
Collecting you-get
/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:139: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning,
  Downloading https://files.pythonhosted.org/packages/ac/51/a4d8efe889cb550f3269a2fa4f445bb8969a5160ab6edc83f36d60bb3c1a/you-get-0.4.1456.tar.gz (158kB)
     |████████████████████████████████| 163kB 55kB/s 
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-yQslu5/you-get/setup.py'"'"'; __file__='"'"'/tmp/pip-install-yQslu5/you-get/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-yQslu5/you-get/pip-egg-info
         cwd: /tmp/pip-install-yQslu5/you-get/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-yQslu5/you-get/setup.py", line 10, in <module>
        proj_info = json.loads(open(os.path.join(here, PROJ_METADATA), encoding='utf-8').read())
    TypeError: 'encoding' is an invalid keyword argument for this function
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:139: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning,
WARNING: You are using pip version 19.3.1; however, version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[root@nessus ~]# 
[root@nessus ~]# 
[root@nessus ~]# 
[root@nessus ~]# you-get
-bash: you-get: 未找到命令
[root@nessus ~]# 
[root@nessus ~]# 
[root@nessus ~]# yum install python3
已加载插件:fastestmirror
Repository base is listed more than once in the configuration
base                                                                              | 3.6 kB  00:00:00     
extras                                                                            | 2.9 kB  00:00:00     
updates                                                                           | 2.9 kB  00:00:00     
zabbix                                                                            | 2.9 kB  00:00:00     
zabbix-non-supported                                                              |  951 B  00:00:00     
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 python3.x86_64.0.3.6.8-13.el7 将被 安装
--> 正在处理依赖关系 python3-libs(x86-64) = 3.6.8-13.el7,它被软件包 python3-3.6.8-13.el7.x86_64 需要
--> 正在处理依赖关系 python3-setuptools,它被软件包 python3-3.6.8-13.el7.x86_64 需要
--> 正在处理依赖关系 python3-pip,它被软件包 python3-3.6.8-13.el7.x86_64 需要
--> 正在处理依赖关系 libpython3.6m.so.1.0()(64bit),它被软件包 python3-3.6.8-13.el7.x86_64 需要
--> 正在检查事务
---> 软件包 python3-libs.x86_64.0.3.6.8-13.el7 将被 安装
--> 正在处理依赖关系 libtirpc.so.1()(64bit),它被软件包 python3-libs-3.6.8-13.el7.x86_64 需要
---> 软件包 python3-pip.noarch.0.9.0.3-7.el7_7 将被 安装
---> 软件包 python3-setuptools.noarch.0.39.2.0-10.el7 将被 安装
--> 正在检查事务
---> 软件包 libtirpc.x86_64.0.0.2.4-0.16.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

=========================================================================================================
 Package                        架构               版本                        源                   大小
=========================================================================================================
正在安装:
 python3                        x86_64             3.6.8-13.el7                base                 69 k
为依赖而安装:
 libtirpc                       x86_64             0.2.4-0.16.el7              base                 89 k
 python3-libs                   x86_64             3.6.8-13.el7                base                7.0 M
 python3-pip                    noarch             9.0.3-7.el7_7               updates             1.8 M
 python3-setuptools             noarch             39.2.0-10.el7               base                629 k

事务概要
=========================================================================================================
安装  1 软件包 (+4 依赖软件包)

总下载量:9.5 M
安装大小:48 M
Is this ok [y/d/N]: y
Downloading packages:
(1/5): libtirpc-0.2.4-0.16.el7.x86_64.rpm                                         |  89 kB  00:00:00     
(2/5): python3-3.6.8-13.el7.x86_64.rpm                                            |  69 kB  00:00:00     
(3/5): python3-setuptools-39.2.0-10.el7.noarch.rpm                                | 629 kB  00:00:01     
(4/5): python3-pip-9.0.3-7.el7_7.noarch.rpm                                       | 1.8 MB  00:00:02     
(5/5): python3-libs-3.6.8-13.el7.x86_64.rpm                                       | 7.0 MB  00:00:18     
---------------------------------------------------------------------------------------------------------
总计                                                                     530 kB/s | 9.5 MB  00:00:18     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : libtirpc-0.2.4-0.16.el7.x86_64                                                       1/5 
  正在安装    : python3-setuptools-39.2.0-10.el7.noarch                                              2/5 
  正在安装    : python3-libs-3.6.8-13.el7.x86_64                                                     3/5 
  正在安装    : python3-3.6.8-13.el7.x86_64                                                          4/5 
  正在安装    : python3-pip-9.0.3-7.el7_7.noarch                                                     5/5 
  验证中      : python3-pip-9.0.3-7.el7_7.noarch                                                     1/5 
  验证中      : python3-3.6.8-13.el7.x86_64                                                          2/5 
  验证中      : libtirpc-0.2.4-0.16.el7.x86_64                                                       3/5 
  验证中      : python3-setuptools-39.2.0-10.el7.noarch                                              4/5 
  验证中      : python3-libs-3.6.8-13.el7.x86_64                                                     5/5 

已安装:
  python3.x86_64 0:3.6.8-13.el7                                                                          

作为依赖被安装:
  libtirpc.x86_64 0:0.2.4-0.16.el7                python3-libs.x86_64 0:3.6.8-13.el7                    
  python3-pip.noarch 0:9.0.3-7.el7_7              python3-setuptools.noarch 0:39.2.0-10.el7             

完毕!
[root@nessus ~]# 
[root@nessus ~]# 
[root@nessus ~]# 
[root@nessus ~]# python3
Python 3.6.8 (default, Apr  2 2020, 13:34:55) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> quit()
[root@nessus ~]# 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
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/9b/2c/9cb2637be0f09499bcb54fdec2f58ae7fabb2a347c94f62b19bdd7ed450e/you_get-0.4.1456-py3-none-any.whl (217kB)
    100% |████████████████████████████████| 225kB 120kB/s 
Installing collected packages: you-get
Successfully installed you-get-0.4.1456
[root@nessus ~]# 
[root@nessus ~]# 
[root@nessus ~]# you-get   https://www.bilibili.com/video/BV1LJ411Y7og?p=3
you-get: This is a multipart video. (use --playlist to download all parts.)
site:                Bilibili
title:               老男孩教育 openstack全新架构实战 (P3. 03-openstack的基础服务安装)
stream:
    - format:        flv
      container:     flv
      quality:       高清 1080P
      size:          102.3 MiB (107239520 bytes)
    # download-with: you-get --format=flv [URL]

Downloading 老男孩教育 openstack全新架构实战 (P3. 03-openstack的基础服务安装).flv ...
 2.4% (  2.5/102.3MB) ├██───────────────────────────────────────────────────────────────┤[1/1]   67 kB/s

おすすめ

転載: blog.51cto.com/8189171/2535206