applemusic-core
v1.1.0
Published
Core module for Apple Music download functionality
Downloads
6
Readme
Apple Music-core
Download music from Apple Music
[ WARNING ]
If you are caught buying and selling this code, we have the right to charge a fee for the code you sell
Installation
npm i applemusic-core
Usage
Search by "song title"
const { search } = require("applemusic-core");
(async function(query) {
const results = await search(query);
})("Never gonna give you up");
Result scheme:
[
{
url: String,
type: String,
artists: String,
title: String,
cover: String
}
]
Downloading "audio"
const { download, downloadAlbums } = require("applemusic-core");
//song
(async function(url) {
const results = await download(url);
})("https://music.apple.com/id/album/never-gonna-give-you-up/1558533900?i=1558534271");
//album
(async function(url, limit) {
const results = await downloadAlbums(url, limit);
})("https://music.apple.com/id/album/never-gonna-give-you-up/1558533900", 3);
Result scheme:
// Download
{
filename: string;
image: string;
title: string;
mimetype: string;
data: Buffer;
}
// Download Albums
{
artists: string,
image: string,
audios: [
{
image: string,
title: string,
data: buffer
}
]
}
Filter Searching
const { search } = require("applemusic-core");
async function filtering(text) {
const res = await search(text)
const filter = res.filter(v => v.type === "Song")//change song, playlist or album
return filter
}
filtering("royalty")
Version
- [x] Search
- [x] Downloading Song
- [x] Support Download Album/Playlist
#License
Copyright (c) 2024 Wizz Team
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.