Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justyuuto/spotify-downloader
A Python script to download music straight from Spotify servers lol
https://github.com/justyuuto/spotify-downloader
decryption drm drm-bypass ffmpeg spotify widevine widevine-drm
Last synced: 1 day ago
JSON representation
A Python script to download music straight from Spotify servers lol
- Host: GitHub
- URL: https://github.com/justyuuto/spotify-downloader
- Owner: JustYuuto
- License: mit
- Created: 2024-02-26T14:37:09.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-07-29T08:57:33.000Z (6 months ago)
- Last Synced: 2025-01-22T23:08:35.157Z (8 days ago)
- Topics: decryption, drm, drm-bypass, ffmpeg, spotify, widevine, widevine-drm
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 79
- Watchers: 6
- Forks: 12
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Spotify Downloader
A Python script to download music straight from Spotify servers lol
## Features
- Supports downloading music from Spotify (that's the point of this program)
- As it downloads music directly from Spotify servers, the quality is the same as you can hear it on Spotify
- Of course, it decrypts the DRM encryption with pywidevine
- **Soon:** downloading playlists and albums## Usage
```bash
git clone https://github.com/JustYuuto/spotify-downloader.git
cd spotify-downloader
pip install -r requirements.txt
python main.py
# Note: the track id can be a normal id, a gid, or a spotify uri (spotify:track:xxxxxx....)
```Please see [https://cdm-project.com/How-To/Dumping-L3-from-Android](https://cdm-project.com/Android-Tools/KeyDive) to get the `device.wvd` file.
The script will likely ask you for your "sp_dc" cookie, you can get it by logging into Spotify web, and getting the cookie from the storage (in devtools).
> [!NOTE]
> You **need** to have a Spotify Premium account to download music at 160kbps+## Requirements
- [Python 3.9](https://www.python.org/downloads/release/python-390/) (due to the package `pywidevine` and compatibility reasons)
- [FFmpeg](https://www.ffmpeg.org/download.html) (in ur path), this is required for decrypting mp3s## License
The source code is licensed under the MIT license. You can view it [here](LICENSE.txt).