Skip to content

Instantly share code, notes, and snippets.

@JamesTheHacker
Created February 19, 2017 14:36
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 JamesTheHacker/b3deaf8fb852a1c5216063e42d6e3a68 to your computer and use it in GitHub Desktop.
Save JamesTheHacker/b3deaf8fb852a1c5216063e42d6e3a68 to your computer and use it in GitHub Desktop.
  1. Create a new file inside the folder you created to store your Youtube downloads. Call it dl.sh
  2. Paste the code above and save
  3. Open terminal, and type: cd YoutubeDownloads (replace YouTubeDownloads with the folder you created)
  4. Type: chmod +x dl.sh
  5. Now enter: ./dl.sh https://www.youtube.com/watch?v=p-GFsk5vE6o
  6. Wait for download to complete :)
#!/bin/bash
youtube-dl --extract-audio --audio-format mp3 $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment