/lyric-api

:musical_score: API and NPM Module for fetching lyrics from lyrics.wikia.com

Primary LanguageJavaScriptMIT LicenseMIT

lyric-api

API that returns lyrics after searching on lyrics.wikia.com based on Artist and Song.

Deploy on Heroku

Deploy

Deployed at: https://lyric-api.herokuapp.com/api/ and http://128.199.199.233:8081/api/

Usage: https://lyric-api.herokuapp.com/api/find/artist/song
Example: http://lyric-api.herokuapp.com/api/find/John%20Lennon/Imagine

Sample Python Code

data = json.load(urllib2.urlopen('http://lyric-api.herokuapp.com/api/find/John%20Lennon/Imagine'))
print(data['lyric'])
print(str(data['lyric']).split())

NOTE: Please do not use this in Production as it is not allowed by the scraped website.

Use this at your own discretion. Lyrics are being scraped from publically available lyrics at lyrics.wikia.com

npm version

Module for fetching lyrics from lyrics.wikia.com using artist name and song.

Installation

npm install lyric-get

Usage

var l = require("lyric-get");

l.get("John Lennon", "Imagine", function(err, res){
    if(err){
        console.log(err);
    }
    else{
        console.log(res);
    }
});