Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thoriqazzikraa/spotifydl

Simple Spotify Track/Album/Playlist Downloader with Metadata
https://github.com/thoriqazzikraa/spotifydl

spotify spotify-api spotify-downloader spotifydl-core

Last synced: 2 months ago
JSON representation

Simple Spotify Track/Album/Playlist Downloader with Metadata

Awesome Lists containing this project

README

        

Simple Scraper Spotify Downloader from online website

## Installation

```sh
> npm i @nechlophomeriaa/spotifydl@latest
```

## Usage

```js
// CommonJS
const {
getOriginalUrl,
search,
downloads,
downloads2,
downloads3,
downloadAlbum,
downloadAlbum2,
downloadAlbum3,
downloadTrack,
downloadTrack2,
downloadTrack3
} = require("@nechlophomeriaa/spotifydl")
```

```js
// ESM
import {
getOriginalUrl,
search,
downloads,
downloads2,
downloads3,
downloadAlbum,
downloadAlbum2,
downloadAlbum3,
downloadTrack,
downloadTrack2,
downloadTrack3
} from "@nechlophomeriaa/spotifydl"
```

## Search Function

```js
(async () => {
const searchTrack = await search(query, limit) //
console.log(searchTrack)
// Promise will be return an Array
})

/*
Example: {

(async () => {
const searchTrack = await search("summer salt tidal waves", 5)
console.log(searchTrack)
})

}
*/
```

## Download Single Track Function

```js
// Input Metadata: ✅
(async () => {
const downTrack = await downloadTrack2(song) // query || url
console.log(downTrack)
})
/*
Example Output: {

{
status: true,
title: 'Someone To Spend Time With',
artists: 'Los Retros',
duration: '00:02:53',
explicit: false,
popularity: 73,
url: 'https://open.spotify.com/track/6SE4JAo7T8C7XkFka5bbga',
album: {
name: 'Someone To Spend Time With',
type: 'single',
tracks: 1,
releasedDate: '2019-02-12'
},
imageUrl: 'https://i.scdn.co/image/ab67616d0000b273a1f060b534d1d9c859acc73f',
audioBuffer:
}

}
*/
```

## Download Albums Function

```js
// Supports: Album/Playlist
// Input Metadata: ✅
(async () => {
const downAlbums = await downloadAlbum2(url)
console.log(downAlbums)
})
/*
Example output: {

{
type: 'album',
metadata: {
cache: true,
success: true,
artists: 'Bubble Tea and Cigarettes',
title: "There's Nothing But Pleasure",
cover: 'https://i.scdn.co/image/ab67616d0000b273c7dd8b1a8ff4ee3f89676686',
releaseDate: '2022-09-02'
},
trackList: [
{
success: true,
metadata: [Object],
audioBuffer:
},
{
success: true,
metadata: [Object],
audioBuffer:
},
{
success: true,
metadata: [Object],
audioBuffer:
},
{
success: true,
metadata: [Object],
audioBuffer:
},
{
success: true,
metadata: [Object],
audioBuffer:
},
{
success: true,
metadata: [Object],
audioBuffer:
},
{
success: true,
metadata: [Object],
audioBuffer:
},
{
success: true,
metadata: [Object],
audioBuffer:
}
]
}

}
*/
```

If there is bug/error please make an issue!