#download #downloader #cli #source #clap #rustube

app cli-yt-downloader

A simple to use Cli for downloading YouTube videos

5 releases

0.1.4 Jun 9, 2024
0.1.3 Jun 9, 2024
0.1.2 Jun 6, 2024
0.1.1 Jun 6, 2024
0.1.0 Jun 6, 2024

#2209 in Command line utilities

MIT license

18KB
188 lines

Cli YouTube Downloader

A simple YouTube downloader powered by rustube and clap

Installation

cargo install cli-yt-downloader

Optional - Create alias to be 'yt'

Step 1 - create alias

echo 'alias yt="cli-yt-downloader"' >> ~/.zshrc

Step 2 - source the .zshrc

source ~/.zshrc

Download a video

cli-yt-downloader -- "https://www.youtube.com/watch?v=xVuTFm1ckkI"

Download only audio

cli-yt-downloader -- "https://www.youtube.com/watch?v=xVuTFm1ckkI" -a

Download to a specific path

cli-yt-downloader -- "https://www.youtube.com/watch?v=xVuTFm1ckkI" -o ~/some-path

Default download location

The default download location is set to be your OS's download folder.

Dependencies

~10–21MB
~277K SLoC