Catalog npm
PACKAGE EXPLORERView in registry

4lyric

npm

Get lyrics from 4 sites, lyrics.com, musixmatch.com, azlyrics.com and lyricslive.com [2.0 branch]

azlyricslyricslyrics.comlyricslivemusixmatchsong lyrics
Versions collected1
Direct dependencies3From release 2.0.4
Last observed20 Oct, 20:13 UTC

README

Current package documentation

4Lyrics

A webscraper to parse and return lyrics from different sites. No API keys required!

Benefits (over main branch)

  • Only 3 dependencies.
  • Uses xpath and xmldom instead of Cheerio and its dependencies.
  • Has (hopefully) functional typings for TypeScript users (v2.0.2).
  • Much cleaner and lighter than master branch.
  • Versatile; easily adaptable to other sites.
  • Removed Lyricslive module entirely as the site is now defunct. songlyrics.com is added in place.

Quick-start

const { MusixMatch, AzLyrics, SongLyricsCom, LyricsCom } = require('./lib/musixmatch');
const M = new MusixMatch();
const A = new AzLyrics();
const S = new SongLyricsCom();
const L = new LyricsCom();

(async () => {
    // musixmatch
    const m_u = await M.fetchURLs('Boston more than a feeling');
    const m_l = await M.fetchLyrics(m_u[0]);
    // azlyrics
    const a_u = await A.fetchURLs('Boston more than a feeling');
    const a_l = await A.fetchLyrics(a_u[0]);
    // songlyrics.com
    const s_u = await S.fetchURLs('Boston more than a feeling');
    const s_l = await S.fetchLyrics(s_u[0]);
    // lyrics.com
    const l_u = await L.fetchURLs('Boston more than a feeling');
    const l_l = await L.fetchLyrics(l_u[0]);
})();

Note

  • If no lyrics or URLs are found, an empty array is returned.
  • Musixmatch is recommended for search accuracy and lyric accuracy.

WIP

  1. Options (URL limits, etc.).

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
2.0.4Registry latest28 Dec 20193

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
khafradev/4lyrics

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:13 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d5cfb5058d63fd2093900b384fba9feac4aa5433135613fcc7fce93f8f0060bc