Skip to content

plasticny/videoDl

Repository files navigation

VideoDl

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.

Features

lazy youtube download

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)
To use this tool:
Download from release and run LazyYtDownload.exe, or
Download source code and run lyd.bat

download.bat (DO NOT USE)

Tested sites

This tool is tested to be able to:
Download video from these sites

  • Youtube
  • Bilibili
  • Instagram
  • Facebook
  • Pinterest
Download playlist from these sites
  • Youtube
  • Bilibili

Testing

Install modules in requirements.txt and test-requirements.txt.
In project root, execute

pytest

Compile lyd

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 compilation

About the release

Only 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

Note for developing

  • 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.

About

A cli video downloader based on yt-dlp

Resources

Stars

Watchers

Forks

Contributors

Languages