Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thoriqazzikraa/spotifydl
- Owner: thoriqazzikraa
- License: mit
- Created: 2023-09-03T12:39:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-29T06:37:24.000Z (4 months ago)
- Last Synced: 2024-10-28T08:14:08.250Z (2 months ago)
- Topics: spotify, spotify-api, spotify-downloader, spotifydl-core
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!