CLI lyrics program using Python, playerctl
1.Python libraries required
- BeautifulSoup / bs4
- requests
- subprocess (Pre-Installed with standard python library)
- getopt
- python-lxml
2. Software required to be installed
Playerctl
On Arch and related distro use the following
sudo pacman -S playerctl python-lxml
For the Debian/Ubuntu you need the deb package. (GOOGLE IT)
1. Install the python library using pip
pip install beautifulsoup4 requests optspec
2. Clone this repo to a folder
git clone https://www.github.com/dheerajshenoy/getlyrics.git
3. Open the getlyrics folder and run the install.sh script
chmod +x install.sh && ./install.sh
4. Add ~/.local/bin PATH to the PATH variable
Add the following command to your terminal config file (ex: .bashrc or .zshrc etc.)
export PATH=$PATH:~/.local/bin
ALL IN ONE INSTALLATION ( ASSUMING THE PATH VARIABLE HAS BEEN UPDATED)
pip install beautifulsoup4 requests optspec && git clone https://www.github.com/dheerajshenoy/getlyrics.git && cd getlyrics && chmod +x install.sh && ./install.sh
Getting lyrics for the currently playing spotify song
Getting lyrics for specified song
getlyrics "name of the song"
Simply run the uninstall.sh script and you're done :)