1.0.2 • Published 5 months ago
scrapelyrics v1.0.2
FILE: /scrapelyrics/README.md
Scrapelyrics
Scrapelyrics is a simple Node.js package that allows you to scrape song lyrics from a given URL using the scrapeLyrics
function. This package utilizes axios
for HTTP requests and cheerio
for parsing HTML.
Installation
To install the package, use npm:
npm install scrapelyrics
Usage
To use the scrapeLyrics
function, require the package in your Node.js application and call the function with the URL of the lyrics page.
const { scrapeLyrics } = require('scrapelyrics');
const url = 'URL_OF_THE_LYRICS_PAGE';
scrapeLyrics(url)
.then(lyrics => {
console.log(lyrics);
})
.catch(error => {
console.error('Error:', error);
});
Contributing
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
License
This project is licensed under the MIT License. See the LICENSE file for details.