Run audio from youtube videos in terminal
python
version 3 is required.
You need youtube-dl and vlc media player for the script to work.
sudo apt-get install vlc
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install youtube-dl
Just run the script youtube-audio
along with the url for youtube video as argument.
Example:
python youtube-audio.py https://www.youtube.com/watch?v=-qfCrYwdqCA
Or simply you can make the script executable using chmod u+x youtube-audio.py
. Then you will be able to run it as:
youtube-audio.py https://www.youtube.com/watch?v=-qfCrYwdqCA
- Checking for valid youtube url
- Parsing the youtube url from a playlist
- Way to add urls to create playlist
- Play from a youtube playlist