lyrics-x
v1.0.4
Published
A simple yet most powerful scraper to get lyrics and thumbnail og any song from Genius Lyrics
Downloads
6
Maintainers
Readme
🍃 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);
});