Python API for obtaining song lyrics from darklyrics.
darklyrics is an online database of lyrics for metal music.
This library scrapes the site for the lyrics and returns it. Kindly read the disclaimer to ensure that your use complies with it.
darklyrics is package freely available on PyPI and can easily be installed via pip.
pip install darklyrics
Currently the following python versions are supported
- 2.7
- 3.5
- 3.6
- 3.7
Currently only 4 APIs are supported get_lyrics, get_songs, get_albums and get_all_lyrics. On success it returns lyrics on failure it will raise a LyricsNotFound exception.
import darklyrics
try:
print(darklyrics.get_lyrics(song,artist))
print(darklyrics.get_lyrics(song))
print(darklyrics.get_songs(artist))
print(darklyrics.get_albums(artist))
print(darklyrics.get_all_lyrics(artist))
except darklyrics.LyricsNotFound:
print('No lyrics found')