Skip to content
An unofficial MusixMatch scraper to get lyrics with only the title and artist metadata
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

node-unofficialmxm

An unofficial MusixMatch scraper to get lyrics with only the title and artist metadata ##Usage

var mxm = require('node-unofficialmxm');

mxm('Bring Me To Life', 'Evanescence', function(err, result){
  if(err) return console.log(err);
  
  var maxLines = result.lyrics.split('\n').length;
  
  console.log('Found lyrics for:\n\tSong Name: ' + result.title + '\n\tSong Artist: ' + result.artist + '\n\tRandom line: "' + result.lyrics.split('\n')[getRandomInt(0, maxLines)] + '"');
});

function getRandomInt(min, max) {
  min = Math.ceil(min);
  max = Math.floor(max);
  return Math.floor(Math.random() * (max - min)) + min;
}

##Expected Result: Result

You can’t perform that action at this time.