hypem-audio
v0.0.1
Published
Scrapes [Hype Machine](http://hypem.com) url to get audio stream urls
Downloads
3
Readme
hypem-audio
Scrapes Hype Machine url to get audio stream urls
Install
npm install hypem-audio
Usage
const {getStreamUrls} = require('hypem-audio')
const url = 'http://hypem.com/latest'
getStreamUrls(url)
.then(streamUrls => {
console.log(streamUrls)
/*
['http://api.soundcloud.com/tracks/325088081/stream?consumer_key=nH8p0jYOkoVEZgJukRlG6w',
...
]
*/
})
.catch(error => {
console.error(error)
})
Test
npm test
NOTE: this module will most likely break in the future when Hype Machine updates their audio endpoints.
License
MIT