Python can be used to do what?

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_25889465/article/details/99167330

Python provides two free and very useful web video download tool, are you-get and youtube-dl, without coding can easily download includes the B station, Youku video mainstream video site, here I briefly about the installation and use of these two tools, and interested friends can try:

you-get

1. First, install you-get, the direct command line window enter the command "pip install you-get" on the line, following the installation package will 215K, installation is very fast:

2. After installation is complete, we will be able to download video directly from the command line, and basic usage - "you-get + Video Web address" can be, as here to download the video station B, for example, the speed is very good:

3. Of course, you can first view the video formats (including HD, ultra-clear, etc.) website, and then select the desired download format, just add a parameter i in command behind you-get on the line, as follows, here to video on Youku, for example, has a list of all downloadable formats:

4. More options, including batch downloading video, local online play, etc., can refer to the official help documentation, enter the command directly "you-get -h" on the line, for each parameter and its functions are explained very clearly at a glance:

youtube-dl

1. First, install youtube-dl, this also directly in the command line window, enter the command "pip install youtube-dl" on the line, following the installation package probably about 1.8M, the installation is also very fast:

2. After installation is complete, we will be able to download videos directly using the command line, and basic usage and you-get, like, enter "youtube-dl + video address" can be as follows:

3.至于批量下载的话,需要先将所有视频的网页地址复制到一个文本文件中,然后在命令后添加一个参数a导入文件,便可批量开始下载,效果如下:

4.更多功能的话,可以参考帮助命令“youtube-dl -h”,实用参数非常多,包括网络配置、下载设置等,官方解释的非常详细,清清楚楚:

至此,我们就完成了you-get和youtube-dl这2个免费Python视频下载工具的安装和使用。总的来说,这2个工具都非常不错,使用起来也非常简单,只要你熟悉一下官方文档,很快就能掌握的,当然,Python的应该非常广泛,不仅仅局限于这些,像机器学习、数据处理、网络爬虫等,都有涉及,网上也有相关教程和资料,解释的非常详细,感兴趣的话,可以搜一下,希望以上分享的内容能对你有所帮助吧,也欢迎大家评论、留言进行补充。

Guess you like

Origin blog.csdn.net/qq_25889465/article/details/99167330