genius-lyrics-scrape

1.2.0 • Public • Published

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

Package Sidebar

Install

npm i genius-lyrics-scrape

Weekly Downloads

2

Version

1.2.0

License

GPL-3.0-or-later

Unpacked Size

53.7 kB

Total Files

14

Last publish

Collaborators

  • septslept