1.2.0 • Published 4 years ago

genius-lyrics-scrape v1.2.0

Weekly downloads
9
License
GPL-3.0-or-later
Repository
gitlab
Last release
4 years ago

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

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago