# \[SOLVED\] How to download songs from Spotify Playlist in 320 kbps?

**URL:** <https://onehack.st/t/solved-how-to-download-songs-from-spotify-playlist-in-320-kbps/75262>\
**Category:** Tools & Scripts\
**Tags:** solved, audio, downloaders\
**Created:** [March 26, 2020, 8:29am UTC](https://onehack.st/t/solved-how-to-download-songs-from-spotify-playlist-in-320-kbps/75262 "2020-03-26T08:29:00Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![FlashyFlash](https://onehack.st/user_avatar/onehack.st/flashyflash/32/36454_2.png) [@FlashyFlash](https://onehack.st/u/FlashyFlash)\
**Post date:** [April 2, 2020, 10:04am UTC](https://onehack.st/t/solved-how-to-download-songs-from-spotify-playlist-in-320-kbps/75262/22 "2020-04-02T10:04:29Z")

</div>

You can also try this

> [@Awazing Colab Notebook - All in one](https://onehack.st/t/awazing-colab-notebook-all-in-one/76652):
>
> Hi guys, I wanted to share with you guys an amazing colab notebook that has All the features u would need in colab (i.e. If u r a Pirate like me rofl) It has the following features:- & many more like Spotify Downloader Zippyshare Downloader Mediainfo Generator Apk Downloader Peerflix Server Aria2 Deepnude etc etc Repo: [https://github.com/mohitjoshi155/Codemaster](https://github.com/mohitjoshi155/Codemaster) Notebook Link: Click on the “Open in Colab” button. [[Open In Colab]](https://colab.research.google.com/github/mohitjoshi155/Codemaster/blob/master/Copy of All_in_One_1_9_8_2.ipynb) Disclaimer This…

 ![image](https://onehack.st/uploads/default/original/3X/5/a/5aaa30b8afadafad376f5c3e802551281eb83120.png)

It has spotify downloader and supports playlist and album download  
also download in flac is also possible

---

<div class="post-metadata">

**Author:** ![Despotic](https://onehack.st/letter_avatar_proxy/v4/letter/d/e95f7d/32.png) [@Despotic](https://onehack.st/u/Despotic)\
**Post date:** [August 23, 2023, 2:26pm UTC](https://onehack.st/t/solved-how-to-download-songs-from-spotify-playlist-in-320-kbps/75262/26 "2023-08-23T14:26:36Z")

</div>

This is what I used to download from Spotify

- Install Tampermonkey
- Install the script with [Greasy Fork](https://greasyfork.org/en/scripts/446143-spotify-downloader-download-spotify-songs-playlists-and-albums) or just navigate to [Spotify](https://open.spotify.com/) and paste this code into the console

Code:

```auto
// @author Zertalious (Zert)
const style = document.createElement( 'style' );

style.innerText = `

[role='grid'] {
	margin-left: 50px;
}

[data-testid='tracklist-row'] {
	position: relative;
}

[role="presentation"] > * {
	contain: unset;
}

.btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0;
	background-color: #1fdf64;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M17 12v5H3v-5H1v5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5z"/><path d="M10 15l5-6h-4V1H9v8H5l5 6z"/></svg>');
	background-position: center;
	background-repeat: no-repeat;
	cursor: pointer;
}

.btn:hover {
	transform: scale(1.1);
}

[data-testid='tracklist-row'] .btn {
	position: absolute;
	top: 50%;
	right: 100%;
	margin-top: -20px;
	margin-right: 10px;
}

`;

document.body.appendChild( style );

function animate() {

	const tracks = document.querySelectorAll( '[data-testid="tracklist-row"]' );

	for ( let i = 0; i < tracks.length; i ++ ) {

		const track = tracks[i];

		if ( ! track.hasButton ) {

			addButton( track ).onclick = function () {

				const btn = track.querySelector( '[data-testid="more-button"]' );

				btn.click();

				const highlight = document.querySelector( '#context-menu a[href*="highlight"]' ).href.match( /highlight=(.+)/ )[1];

				document.dispatchEvent( new MouseEvent( 'mousedown' ) );

				const url = 'https://open.' + highlight.replace( ':', '.com/' ).replace( ':', '/' );

				download( url );

			}

		}

	}

	const actionBarRow = document.querySelector( '[data-testid="action-bar-row"]:last-of-type' );

	if ( actionBarRow && ! actionBarRow.hasButton ) {

		addButton( actionBarRow ).onclick = function () {

			download( window.location.href );

		}

	}

}

function download( link ) {

	window.open( 'https://spotify-downloader.com/?link=' + link, '_blank' );

}

function addButton( el ) {

	const button = document.createElement( 'button' );

	button.className = 'btn';

	el.appendChild( button );

	el.hasButton = true;

	return button;

}

setInterval( animate, 1000 );
```

This lets you download Spotify songs, playlists, and albums in 320kbps MP3 using [Spotify Downloader](https://spotify-downloader.com/). The linked site also lets you download the full playlist/album as a ZIP.

Screen sample.

![](https://greasyfork.s3.us-east-2.amazonaws.com/wen6po2slj26wgkcvk3963gok3je)

[Previous page](https://onehack.st/t/solved-how-to-download-songs-from-spotify-playlist-in-320-kbps/75262.md?page=1)
