mmjscrape
Version:
A scraper for Music Maker JAM.
30 lines (26 loc) • 1.22 kB
Markdown
# mmjscrape
[](https://www.npmjs.com/package/mmjscrape)
[](https://www.npmjs.com/package/mmjscrape)
[](https://travis-ci.org/dragonfire535/mmjscrape)
mmjscrape is a simple cli app for downloading Music Maker JAM songs based on
their hash URLs you obtain when sharing via email. It was written for my dad so
I could easily download the songs he made and burn them to CDs, but I got tired
of keeping it on my hard drive collecting dust.
## Cli Usage
`mmjscrape <path> <...hashes>` or `mmj <path> <...hashes>`. You will find the
tracks as m4a files in the `path`. If one cannot be downloaded, it will be
skipped.
## Node Usage
```js
const mmjscrape = require('mmjscrape');
mmjscrape('<hash>').then(data => console.log(data)).catch(console.error);
```
Response object example:
```js
{
hash: 'a6a7bdd9-98d5-11e7-991a-02fe9cf35e65',
url: 'https://mmj-live.s3-accelerate.amazonaws.com/assets/music_file/a994dbd9-98d5-11e7-991a-02fe9cf35e65.m4a',
title: 'Thelonious Junk by bunnyshonis',
data: Buffer
}
```