Play audio from a YouTube video in the terminal.
Inspired by and largely based on ytmdl which instead of playing audio directly from a video on YouTube, downloads it as an mp3
ytplr runs vlc in the background via it's cvlc
cli in order to play the audio.
Built on youtube-dl and vlc
Install the dependencies using your package manager and pip:
sudo apt install vlc
sudo -H pip3 install youtube-dl beautifulsoup
Clone the repo and alias the script in .bashrc, .zshrc, etc. For example:
alias ytplr='~/dev/ytplr/ytplr'
Search for a song:
ytplr "one more time"
Stop any currently playing song:
ytplr