findthelyrics
NPM package to find lyrics to any given song.
NPMJS Package | Github Repo
Disclaimer
Although the code is not licensed, the lyrics are highly likely to be licensed by the respective record label.
To programically check the record label of the song, use Discogs API.
I take no responsibility for the actions used with the code.
How is it done?
It scrapes Genius to find the lyrics.
If the scraper fails on Genius, it falls back to MusixMatch.
Sample Code
This code gets the lyrics of I Just Wanna Shine
by Fitz and The Tantrums
.
const ftl = require("findthelyrics");
var q = "Fitz and The Tantrums I Just Wanna Shine";
ftl.find(q ,function(err, resp) {
if (!err) {
console.log(resp)
} else {
console.log(err)
}
});