4lyrics
Version:
Get lyrics from 4 sites, lyrics.com, musixmatch.com, azlyrics.com and lyricslive.com
53 lines (43 loc) • 1.13 kB
Markdown
Get lyrics from 4 different sites!
With user input :)
* Musixmatch
* azlyrics
* lyrics.com
* lyricslive
***
* Examples used from test file
```js
const lyrics = require('4lyrics');
```
```js
lyrics.musixmatch.getURL('more than a feeling')
.then(r => lyrics.musixmatch.getLyrics(r))
.then(() => console.log('musixmatch lyrics obtained'))
.catch(console.error);
```
```js
lyrics.azlyrics.getURL('queen you\'re my best friend')
.then(r => lyrics.azlyrics.getLyrics(r))
.then(() => console.log('azlyrics lyrics obtained'))
.catch(console.error);
```
```js
lyrics.lyricscom.getURL('limelight')
.then(r => lyrics.lyricscom.getLyrics(r))
.then(() => console.log('lyrics.com lyrics obtained'))
.catch(console.error);
```
```js
lyrics.lyricslive.getURL('don\'t stop')
.then(r => lyrics.lyricslive.getLyrics(r))
.then(() => console.log('lyricslive lyrics obtained'))
.catch(console.error);
```
1.1.5: Remove more divs in musixmatch that interfere.