Aarkon / darklyrics

Python API for obtaining song lyrics from http://www.darklyrics.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.4
  • 3.5
  • 3.6

API

Currently only 4 API is supported get_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')

About

Python API for obtaining song lyrics from http://www.darklyrics.com/

License:MIT License


Languages

Language:Python 100.0%