It is a method to specify the download location with youtube-dl. youtube-dl is the most modern module that allows you to download YouTube videos from your terminal. It also supports mp3, so you can download only music.
youtube-dl
youtube-dl is a command line tool for downloading YouTube videos from YouTube. GitHub
reference https://qiita.com/ssh0/items/ca9adc000eeca8b180f4
I would like to install youtube-dl with pip.
tarmnal.
$ pip install youtube-dl
When installing with brew
tarmnal.
$ brew install youtube-dl
tarmnal.
$ youtube-dl 'YouTube video URL'
tarmnal.
$ youtube-dl -o '$HOME/Downloads/%(title)s.%(ext)s' 'YouTube video URL'
reference https://www.it-swarm.dev/ja/youtube-dl/youtubedl%E3%82%A8%E3%83%A9%E3%83%BC%E3%82%92%E4%BF%AE%E6%AD%A3%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%EF%BC%9A%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%E7%94%A8%E3%81%AB%E9%96%8B%E3%81%8F%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%EF%BC%9Aerrno-21%E3%83%87%E3%82%A3%E3%83%AC%E3%82%AF%E3%83%88%E3%83%AA%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%EF%BC%9F/961151430/
Recommended Posts