Skip to content

Instantly share code, notes, and snippets.

@nickshek
Last active September 3, 2018 21:34
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 nickshek/c09e31ff90be8d40f47d6fd77462a0a5 to your computer and use it in GitHub Desktop.
Save nickshek/c09e31ff90be8d40f47d6fd77462a0a5 to your computer and use it in GitHub Desktop.
Download youtube videos as a mp3 using youtube-dl
# Add the following alias command to .bashrc or .bash_profile
# Install youtube-dl: https://rg3.github.io/youtube-dl/download.html
alias youtube-audio="youtube-dl -i --extract-audio --audio-format mp3 --audio-quality 0"
# Usage: youtube-audio https://www.youtube.com/watch?v=dQw4w9WgXcQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment