Skip to content

res0nance/darklyrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

darklyrics

Build Status Coverage Status PyPI version License: MIT

Python API for obtaining song lyrics from darklyrics.

Description

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.

Installation

darklyrics is package freely available on PyPI and can easily be installed via pip.

pip install darklyrics

Support

Currently the following python versions are supported

  • 2.7
  • 3.5
  • 3.6
  • 3.7

API

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')