IT journey (ID: Jake_Internet) please contact authorization (wechat ID: Hc220088)

Hello, I’m JackTian.

The content of this article today is a great tool for students who often browse the major video websites. When you see a video you currently need, save it locally by all means so that you can watch it again later. It happens that some videos may require members to download, and some third-party video downloaders may be slow in downloading.

This time, I recommend several warehouses on GitHub, which are full of artifacts. Through one of these artifacts, you can download the entire network video with only one line of code! This for like tun video partners, will like these video download artifact tools, really sweet!

You-Get (35.3K Star)

You-get is a small command-line utility that downloads media content (video, audio, images) from the Web.

Support YouTube, Facebook, netease Video, Baidu Tieba, Bilibili, iQiyi, Kougou Music, Miaopai, Tencent Video, Penguin Live, Sina Video, Sohu Video, Tudou, Youku, Mango TV, Kuaishou, Douyin, TikTok, Zhihu and dozens of well-known video websites at home and abroad for video, picture, audio download, At the same time, it can export web videos to local players for online play, with fast buffer speed and no advertising.

Installation:

The toolkit is developed in Python, so your computer needs to have three dependencies. If your computer runs Python, you can install the toolkit. Otherwise, you need to configure the Python environment before installing it.

  • Python 3.2 or above

  • FFmpeg 1.0 or above

  • (Optional) RTMPDump

There are several ways to install the toolkit, as described below:

First: Install through PIP

pip3 install you-get
Copy the code

Second: direct Git

git clone git://github.com/soimort/you-get.git
Copy the code

Then run./setup.py directly.

Third: Install via HomeBrew (for Mac)

brew install you-get
Copy the code

In addition, there are several other installation methods, not a list, interested can go directly to visit:

GitHub address: github.com/soimort/you…

Use you – get

Copy the video link and add the URL link of the video after executing you-get in the terminal to download it.

Syntax examples:

you-get <url>
Copy the code

case

you-get 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
Copy the code

Set the path and name of the downloaded file

you-get -o ~/Videos -O zoo.webm 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
Copy the code

When you see a video you are interested in, you can use the –info/-i options to view all available qualities and formats:

you-get -i 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
Copy the code

Use the –player/-p option to enter the video into the media player of your choice, such as MPV or VLC, instead of downloading it:

you-get -p vlc 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
Copy the code

Or, if you want to watch a video in your browser without ads or comments:

you-get -p chromium 'https://www.youtube.com/watch?v=jNQXAC9IVRw'
Copy the code

YouTube – Dl (71.5k Star)

Youtube-dl is the highest-star and most widely known video downloader in today’s article, and it’s also a command-line program that downloads videos from YouTube.com and several other sites.

Youtube-dl requires versions 2.6, 2.7, or 3.2+ of the Python interpreter, and it is not platform-specific. It should run on your Unix machine, Windows, or macOS.

Compared with You-get, youtube-DL may be less supported by some domestic websites, but it does not affect its ability to be a high-quality video download tool.

By using the youtube-DL video download tool, you can specify some parameters such as: Network options, geographic restrictions, video selection, download options, file system options, thumbnails, detailed progress, simulation options, solutions, video format options, letter options, authentication options, post-processing options, etc.

It can be seen that the above so many configuration parameters options, and then download the video on the parameter selection and configuration will be more troublesome, but also fully shows the flexibility of YouTube – DL.

GitHub address: github.com/ytdl-org/yo…

Annie (12.5K Star)

Annie is a fast, simple and clean video downloader built using Go language. It supports cross-platform Windows, Linux, MacOS and other operating systems, and is easy to install and use.

Characteristics of the

  • Multivideo download
  • Video playlist download
  • Resume download
  • Automatic retry
  • Customize Cookies and proxies
  • Multithreading and short links
  • Use the designated referral source url
  • Specify the output path and name
  • Reuse the extracted data

The installation

Before installing Annie, first install the dependency FFmpeg, which is a complete cross-platform solution for recording, converting, and streaming audio and video.

Website: www.ffmpeg.org/

FFmpeg does not affect downloads, only final file merges.

Install Annie using Go Get

GO111MODULE=on go get github.com/iawia002/annie
Copy the code

MacOS user installation

brew install annie
Copy the code

The use of Annie

annie [OPTIONS] URL [URL...]
Copy the code

The -i option displays all available quality videos without downloading.

Annie - I https://www.youtube.com/watch? v = dQw4w9WgXcQCopy the code

The -p option downloads the entire playlist instead of individual videos.

annie -i -p https://www.bilibili.com/bangumi/play/ep198061
Copy the code

Download multiple urls at once:

annie -i https://www.bilibili.com/video/av21877586 https://www.bilibili.com/video/av21990740
Copy the code

The -o option sets the path, while the -o option sets the name of the downloaded file

annie -o .. / -o "hello" https://..Copy the code

In addition, there are many parameter options, not to list, interested can directly visit:

GitHub address: github.com/iawia002/an…

conclusion

Through the above three kinds of high-quality GitHub open source project, its ultimate goal is much the same, can choose according to personal preferences for their own video downloaders, I hope this article will help you, if you have a better quality open source project, also welcome to recommend.

Original is not easy, code word is not easy, if you think this article is a bit useful to you, please leave a message for this article, point to see, or forward it, let more people see. Because this will be my continuous output of more high-quality articles the strongest power! Thank you!

GitHub’s star is 148K! These artifacts can be downloaded with just one line of code!