This is a simple python script to automatically scrape www.genius.com lyrics based on the currently playing Spotify song (using the Linux native Spotify client). Actually, other media players than Spotify can be used as long as they use the DBus MediaPlayer2 interface. An example would be VLC. There program can also fetch lyrics for mpd.
The program can be installed by downloading and extracting the zip and simply running.
python3 setup.py install
You can also install it from pypi:
pip3 install spotify-lyrics-cli
It can then be run with
lyrics-cli [spotify|vlc|...]
If you want to fetch lyrics for mpd, you'll need to install the python library mpd
.