genius-lyrics-scrape
v1.2.0
Published
Genius Lyrics Scraper
Downloads
6
Maintainers
Readme
Genius Lyrics Scraper
Table of Contents
About
genius-lyrics-scrape is a Genius Lyrics API wrapper and a scraper.
Features
- Object-oriented
- Predictable abstractions
- Full CommonJS documentation (Intellisense)
Getting Started
Installing
Add genius-lyrics-scrape to your Node.JS project
> npm i genius-lyrics-scrape
Require the module to your file
const Genius = require('genius-lyrics-scrape')
Example Usage
const Genius = require('genius-lyrics-scrape')
const token = require('YOUR-TOKEN-HERE')
const client = new Genius.Client(token)
client.searchAPI('Hello World')
.then(searchRes => { console.log('First Result:\n', searchRes.result[0]) })
.catch(err => console.err(err))
client.scrapeLyrics('https://genius.com/Travis-scott-sicko-mode-lyrics')
.then(scraped => console.log('Scraped Lyrics:\n', scraped))
.catch(err => console.err(err))
Documentation
See the documentation here