At present, many websites do not support direct download. For example, there is no download button on the page of the video in the B station that we often go to. For other videos, we need to download the client to download…… Although this does not stop many people, some smart friends will download some third-party software to download, such as Rat, etc., but some software always pop up a lot of ads, it is very annoying, after all, they are to eat.

For programmers who work with computers, I don’t even bother with software.

I think a lot of people haveyou-getIf you use this trick in front of some outsiders who do not know how to program, they will give you a thumbs up and shout: “cow!” .


First, the effect demonstration

What also don’t say, let’s see the effect first, I randomly took a computer, download B station video for you to demonstrate:

[video (video – CKUkntGN – 1625840619033) (type – CSDN) (url-live.csdn.net/v/embed/168…)”


You -get

You-get is an excellent Python3-based video parsing and downloading tool for downloading resources from the browser, including videos, audio, pictures, and novels. It supports over 70 major video sites, and so far I have come across very few sites where you-get can’t download videos.

In addition to domestic websites, there is no problem with foreign websites, and I often go to YouTube videos. It’s so easy, it’s not complicated, as you probably saw in the previous video, it’s just a line of code and a url.


Three, operation explanation

1. Install Python and configure environment variables

Let me add, this tool is based on Python, so you need to install Python, most people who learn Python have already installed it, installed after the need to perform the configuration of environment variables, this I will not here for you to detail, do not understand can go to Baidu, you can also go to see this article:

Install Python and configure environment variables

2. The installation you get

The installation here does not need to go to any website to download software, just need to use win+R key to open the run, enter CMD to enter the command line, enter the code:

pip3 install you-get
Copy the code

Write this line of code and hit Enter. The system will start to install you-get. After the installation is complete, your computer can do the magic operation.

3. Download the video

This time you go to find a website video, copy its url, my side or in my video B station video for example, the little sister looks very good, it.

Then we will open the command black window with win+R key, and then type the command you-get website, like this:

you-get https://www.bilibili.com/video/BV1uz4y127JM?spm_id_from=333.851.b_62696c695f7265706f72745f64616e636512.
Copy the code

Then hit enter, it began to download, sometimes the computer will be a few seconds to respond to, wait for a moment to begin to download, wait for it to download successfully.

4. Find a storage location

After downloading, we just need to find the download path of the video, because we did not set the storage path to download directly, so the video is downloaded to the current directory of CMD command, stored in C disk user /EDZ folder, we go to open.

Finally, I’m only shipping the code here, just to save you the effort of downloading the resource, it’s up to you to decide how to use it, the technology is not guilty, but the behavior is, be careful and follow the law.