In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the python methods for downloading unwatermarked videos at full speed". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what are the python methods for downloading unwatermarked videos at full speed.
PART 1
Brief introduction
N_m3u8DL-CLI, an open source project, realizes the function of downloading ts from the m3u8 files of major video websites and merging it into mp4
The description of the original author is already very detailed. The following is a paragraph of the original work.
N_m3u8DL-CLI is a command line tool for downloading m3u8, developed based on the .NET Framework 4.6Framework, calls the system class library for HTTP downloads, supports common m3u8 format downloads, supports partial downloads from videos, and provides a wealth of command line options to enhance its functionality.
Program dependence
Required runtime environment: .NET Framework 4.6
For merging shards: a stripped-down version compiled by ffmpeg or me
Publish page
The most difficult step in using this tool is to get the m3u8 file. I wrote a script that could easily download m3u8 files from a bunch of web pages with video links and then call m3u8dl without having to do it manually one by one.
Because there are many options for clarity, Tencent Video preferred 1080p for iqiyi, 1080p (H265 medium bit rate) is preferred
Of course, if you don't need to download in bulk or can't run my script, please download it manually using the original author's method
✕
PART 2
Basic conditions
1. Laptops or desktops running Windows
One 2.Chrome browser
3. Python environment and pip are installed. Please see the tutorial below if you haven't installed it.
The Mac operating system and Linux are not currently supported because n3u8dl-CLI currently belongs only to Windows.
It doesn't matter, all operations can be done in the virtual machine.
The way to get m3u8 through a script is to debug it remotely through Chrome, which I introduced in the previous article. Using a Chrome that is already logged in directly does not require complex and insecure operations, such as cookie.
PART 3
Usage
Download and install Python2.7, and remember to check pip when installing
1. Download and decompress
Extract to the following file
It mainly includes main.py scripts (. M3u8 files are obtained by chrome), m3u8dl (video clip address from. M3u8 file obtained and downloaded) and ffmpeg (video clip merge)
two。 Install Chrome and log in to your member (no member is not guaranteed to download successfully)
3. Press and hold the right shift button and choose to open powershell here. Don't open it directly with Python! Use the command line!
4. Installed python library (required)
Pip install pywin32 selenium requests beautifulsoup4-- trusted-host mirrors.aliyun.com-I http://mirrors.aliyun.com/pypi/simple/
5. Modify main.py and recommend vscode. Hey, hey.
6. Run the script and wait for the download to finish
Python main.py
7. If the Chrome opens with a blank screen and does not automatically complete the operation, please comment out this line
Open Chrome manually, and then run the script
"C:Program Files (x86) GoogleChromeApplicationchrome.exe" >
Python main.py
At this point, I believe you have a deeper understanding of "what are the python methods for downloading unwatermarked videos at full speed?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.