4Lyrics
A webscraper to parse and return lyrics from different sites. No API keys required!
Benefits (over main branch)
- Only 3 dependencies.
- Uses
xpath
andxmldom
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 = ;const M = ;const A = ;const S = ;const L = ; async { // musixmatch const m_u = await M; const m_l = await M; // azlyrics const a_u = await A; const a_l = await A; // songlyrics.com const s_u = await S; const s_l = await S; // lyrics.com const l_u = await L; const l_l = await L;};
Note
- If no lyrics or URLs are found, an empty array is returned.
- Musixmatch is recommended for search accuracy and lyric accuracy.
WIP
- Options (URL limits, etc.).