Last active
February 21, 2019 23:37
-
-
Save purarue/385ee7b71b5287d9aa9e82de8137a5fd to your computer and use it in GitHub Desktop.
Install youtube-dl on mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open a terminal, and run these: | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update && brew upgrade | |
brew install youtube-dl | |
cd ~/Downloads # the music should be downloaded to Downloads | |
youtube-dl -f best --extract-audio --audio-format mp3 SONG/VIDEO_URL_HERE # to convert a video to mp3/download a mp3 | |
youtube-dl -f best VIDEO_URL_HERE # download a video |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment