0.0.3 • Published 7 years ago

mixcloud-audio v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

DEPRECATED: no longer being supported

mixcloud-audio

Scrapes Mixcloud url to get audio stream urls

NOTE: this module will most likely break in the future when Mixcloud updates their audio endpoints.

Install

npm install mixcloud-audio

Usage

const {getStreamUrls} = require('mixcloud-audio')

const url = 'https://www.mixcloud.com/Bonobo'

getStreamUrls(url)
.then(streamUrls => {
  console.log(streamUrls)

  /*
  ['https://stream4.mixcloud.com/c/m4a/64/4/a/3/e/6711-093c-44a6-88f4-43c9698512ad.m4a',
    ...
  ]
  */
})
.catch(error => {
  console.error(error)
})

Test

npm test

License

MIT