Socket
Socket
Sign inDemoInstall

vozmimp3

Package Overview
Dependencies
3
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vozmimp3

API for vozmimp3.com


Version published
Maintainers
1
Install size
13.9 MB
Created

Readme

Source

vozmimp3

custom scraper API for querying the vozmimp3.com MP3 database

##install

npm install vozmimp3

usage

to search for a mp3 title or an artist use the queryVozmiMp3 method. Provide a data object with key q and the value of the query string. Optionally you can limit and sort your results.

var vozmimp3 = require('vozmimp3');

var data = {
  q: 'cedar m Planet Of Tokyo',
  limit: 5, //default: 20
  sort: {
    keys: ['duration'] //(duration, title, link) default: title  
    order: ['desc'] //(asc, desc) default: asc
    //hint: you can use multiple keys and corresponding orders (that's why the array is for)
  }
}

vozmimp3.queryVozmiMp3(data).then(function(result){
  console.log(result);
}).catch(function (err){
  console.log(err);
}

getPlaylist lets you create playlists. Provide a list key with an array of search queries. For best results use very specific title searches. The API will return one result per item. You can specify a strategy to retrieve the item with the longest duration

var vozmimp3 = require('vozmimp3');

var data = {
  list:
  ['cedar m Planet Of Tokyo',
   'Zonderling Sonderling',
   'dj matthiasKlan',
   'Rude 66 - The 1000 Year Storm'
  ],
  strategy : 'longestDuration' //default: first
}

vozmimp3.getPlaylist(data).then(function(result){
  console.log(result);
}).catch(function (err){
  console.log(err);
}

Keywords

FAQs

Last updated on 05 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc