@allvaa/get-lyrics

Scrape lyrics of given song title from Genius.

Usage no npm install needed!

<script type="module">
  import allvaaGetLyrics from 'https://cdn.skypack.dev/@allvaa/get-lyrics';
</script>

README

@allvaa/get-lyrics

Scrape lyrics of given song title from Genius.

Install

# npm
npm i @allvaa/get-lyrics

# yarn 
yarn add @allvaa/get-lyrics

Using

const song = require("@allvaa/get-lyrics");

(async () => {
    const result = await song("title here");
    console.log(result); // returns Song object
})();

Song object

interface Song {
    title: string; // song title
    image: string; // song image
    geniusUrl: string; // lyrics url from Genius
    lyrics: string; // scraped lyrics
}