The text and pictures in this article come from the network, only for learning, exchange, do not have any commercial purposes, copyright belongs to the original author, if you have any questions, please contact us to deal with

The following article is from the author of Tencent Cloud: Python learning tutorial

(Want to learn Python? Python Learning exchange group: 1039649593, to meet your needs, materials have been uploaded to the group file stream, you can download! There is also a huge amount of new 2020Python learning material.)

preface

Many people are familiar with the Python crawler, which can be used to batch download text, pictures, videos, etc., which involves a lot of knowledge, but there is a method in Python, a line of code can crawl any website above the video, as long as you install the Python environment can, even the white people can easily learn.

You-Get

You-get is a Python 3 based download tool. You Get makes it easy to download videos, pictures and music from the Web.

1. Install Python

2. The installation you get

1. Open CMD, enter the command, and run the command

 pip3 install you-get
Copy the code

2. Run the command to check whether you-get is installed successfully

 you-get
Copy the code

3. Download using you-get

Open CMD and enter the command

You -get Copy the code

you-get -o E:/Desktop https://www.bilibili.com/video/av36938586
Copy the code

Download video with parameters:

Parameter: -o Absolute file path

Parameter: -o File renaming

Parameter: –format= FLV The version number to download, as shown in the green box for details in the previous video

.

One line of code can do it, isn’t it particularly simple and practical?