lyrics-x

1.0.4 • Public • Published

lyrics

The Best lyrics Scraper

lyrics-x

The simplest yet most powerful Genius Lyrics scrapper


🍃 Description:

  • This is a Scraper which can scrap and give you lyrics of any song that's available on Genius Offitial Site.
  • This can return both album thumbnail and lyrics if they are available through thw power of web scraping.
  • Scraping an website is not always allowed by the website owners. This project is made for educational purposes only.

🪄 Installation:

npm i lyrics-x

🪝 Usage:

  • Make sure to always use an asynchronous function to fetch

Metod 1:

const {getThumbnail, getLyrics} = require('lyrics-x');

async function main() {
    const query = "Heat Waves";
    const thumbnailUrl = await getThumbnail(query);
    const lyrics = await getLyrics(query);

    console.log(thumbnailUrl+"\n\n");
    console.log(lyrics); 
  }
  
  main();
  

Method 2:

const {getThumbnail, getLyrics} = require('lyrics-x');

const query = "Heat Waves";

getThumbnail(query).then((thumbnailUrl) => {
    console.log(thumbnailUrl);
});

getLyrics(query).then((lyrics) => {
    console.log(lyrics);
});

Package Sidebar

Install

npm i lyrics-x

Weekly Downloads

7

Version

1.0.4

License

MIT

Unpacked Size

3.93 kB

Total Files

4

Last publish

Collaborators

  • lasiya-nxt