Cli video download tool base on yt-dlp. (This tool attempts to provide a cli for yt-dlp)
- python 3.11.5
- pytest
- yt-dlp (https://github.com/yt-dlp/yt-dlp)
- ffmpeg
Only tested in window 10 system.
This tool tries to minimize the setting during download video
- Enter url to download
- Select download video or audio
- Select download quality
- Select subtitle if any and hard-burn/soft-embed into the video
- Login with cookie file if the site requires. See readme.md in cookie folder for more instructions.
- Download playlist if the url links to a playlist
- Pre-set downlaod settings with a toml file (the file in /src/lyd_autofill.toml)
Download from release and run LazyYtDownload.exe, or
Download source code and run lyd.bat
This tool is tested to be able to:
Download video from these sites
- Youtube
- Bilibili
- Youtube
- Bilibili
Install modules in requirements.txt and test-requirements.txt.
In project root, execute
pytest
Install modules in requirements.txt and compile-requirements.txt.
In project root, execute
pyinstaller lazyYtDownload.spec
The exe file will be generated in /dist/lazyYtDownload
Note: pyinstaller generate build and dist folder. Delete these folders for a clean compilationOnly lazyYtDownload had release its compiled exe file
- execute lazyYtDownload.exe to run the tool
- The lyd_autofill.toml for pre-setup download setting is stored in /_internal
- The extract_info function of yt_dlp doest not work well when getting info of bilibili video, so those info is extract with a custom fetcher.