Skip to content
This repository was archived by the owner on Dec 18, 2019. It is now read-only.

Latest commit

 

History

History
51 lines (34 loc) · 1.3 KB

File metadata and controls

51 lines (34 loc) · 1.3 KB

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);
    }
});