New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lyrics-x

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lyrics-x

A simple yet most powerful scraper to get lyrics and thumbnail og any song from Genius Lyrics

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

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);
});

Keywords

scraper

FAQs

Package last updated on 28 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts