Skip to content

About

A module for scraping Last.fm.

Resources

Stars

1 star

Watchers

2 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

Scrape Engine

This module retrieves data from the music recommander system last.fm via scraping. It takes metadata as an argument and provides the obtained data to a callback.

Install

npm install https://github.com/peermusic/scrape-engine
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

A module for scraping Last.fm.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages