Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maciekmalachowski/spotify-playlist-downloader
🎶With this app, we can confidently download our favorite playlists and albums from Spotify (legally, I think).
https://github.com/maciekmalachowski/spotify-playlist-downloader
dotenv python pytube spotipy streamlit urllib
Last synced: 10 days ago
JSON representation
🎶With this app, we can confidently download our favorite playlists and albums from Spotify (legally, I think).
- Host: GitHub
- URL: https://github.com/maciekmalachowski/spotify-playlist-downloader
- Owner: maciekmalachowski
- License: mit
- Created: 2024-04-17T19:58:48.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T12:34:51.000Z (3 months ago)
- Last Synced: 2024-09-17T15:41:33.174Z (3 months ago)
- Topics: dotenv, python, pytube, spotipy, streamlit, urllib
- Language: Python
- Homepage:
- Size: 3.87 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🎶Spotify-playlist-downloader
## Table of Contents
- [First look](https://github.com/maciekmalachowski/Spotify-playlist-downloader#first-look)
- [Installation](https://github.com/maciekmalachowski/Spotify-playlist-downloader#installation)
- [How it works](https://github.com/maciekmalachowski/Spotify-playlist-downloader#how-it-works)
- [App appearance](https://github.com/maciekmalachowski/Spotify-playlist-downloader#app-appearance)
First look 👀
### With this app, we can confidently download our favorite playlists and albums from Spotify *(legally, I think)*.
### The app is based on `Spotipy` and has a very intuitive user interface written in the `Streamlit`.
### Downloading is provided to us by the `Pytube`.
Installation ℹ
- First of all, clone this repository on your device. Open your shell and paste the following commands:
*URL cloning*
```
git clone https://github.com/maciekmalachowski/Spotify-playlist-downloader.git
```
*SSH cloning*
```
git clone [email protected]:maciekmalachowski/Spotify-playlist-downloader.git
```- Then you need to install the requirements contained in `requirements.txt`.
```
pip install -r requirements.txt
```
- Last but not least, create a `.env` file and paste the following code there:
```
SPOTIPY_CLIENT_ID=`your_spotipy_client_id''
SPOTIPY_CLIENT_SECRET='your_spotipy_client_secret'
SPOTIPY_REDIRECT_URI='https://google.com/'
```
where `your_spotipy_client_id` and `your_spotipy_client_secret` are your own keys. [Check out how to get them](https://developer.spotify.com/documentation/web-api/concepts/apps)*Please note that `SPOTIPY_REDIRECT_URI` must be equal to `https://google.com/`*
- After that run `internal streamlit server` in the repository folder.
```
streamlit run app.py
```
Streamlit will launch the *app.py* file contained in the folder and *automatically* display it in the browser.
How it works 🤔
### At first, the application asks us for a link to our Spotify profile.
### Then it redirects us to https://google.com/. We have to copy the whole link and paste it into the terminal, where it automatically asks us for it.
### After this step, Spotipy reads our liked albums and created playlists with their songs.
### We can confidently choose what we want to download and then press the download button.
### In the meantime, the Pytube library searches YouTube for the names of our songs and downloads them at the indicated location.
### When the download is complete, we get the appropriate message.
App appearance 🔍
The user interface is prepared to guide the user step-by-step.
![Appearance](media/appearance.gif)