Skip to content

peermusic/DemoScrapeEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrape Engine

This module is only for demo purposes, it will only work with specified content! All data is hardcoded.

Install

npm install https://github.com/peermusic/DemoScrapeEngine
var scrapeEngine = require('scrape-engine')

Usage

var scrapeEngine = require('scrape-Engine')

// Get a list of object, which contains similar artist information and the url 
scrapeEngine.getSimilarArtist('Adele', function (err, list) {
  if (err) {
    console.log('Error: ' + err)
    return
  }
  console.log('list: ' + list)
})

// Get a list of object, which contains similar track information and the url 
scrapeEngine.getSimilarTitel('Rolling in the deep', function (err, list) {
  if (err) {
    console.log('Error: ' + err)
    return
  }
  console.log('list: ' + list)
})

// Get the cover of an album as a base64 encoded JSON
scrapeEngine.getCover('21', 'Adele', function (err, img) {
  if (err) {
    console.log('Error: ' + err)
    return
  }
  console.log(img)
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published