Skip to content

Instantly share code, notes, and snippets.

@seanbreckenridge
Last active February 21, 2019 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanbreckenridge/385ee7b71b5287d9aa9e82de8137a5fd to your computer and use it in GitHub Desktop.
Save seanbreckenridge/385ee7b71b5287d9aa9e82de8137a5fd to your computer and use it in GitHub Desktop.
Install youtube-dl on mac
# 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