Skip to content

Instantly share code, notes, and snippets.

@Keshava11
Created February 15, 2017 20:34
Show Gist options
  • Save Keshava11/7edce546b9074d01fcecfcabe48f708f to your computer and use it in GitHub Desktop.
Save Keshava11/7edce546b9074d01fcecfcabe48f708f to your computer and use it in GitHub Desktop.
Youtube downloader script for Ubuntu
#!/bin/sh
#PreRequisites : zenity, youtube-dl must be installed
#Reads the input url from the window
youtube_url=$(zenity --entry --title="Download" --text="Enter youtube url" --width=300)
echo "Youtube video url is : $youtube_url"
#Following command downloads the video
youtube-dl -f 22 -cit $youtube_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment