Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/w3bdesign/spotify-import
Recommend songs and import a list of songs to a new or existing playlist in Spotify
https://github.com/w3bdesign/spotify-import
flask python spotify spotipy
Last synced: 7 days ago
JSON representation
Recommend songs and import a list of songs to a new or existing playlist in Spotify
- Host: GitHub
- URL: https://github.com/w3bdesign/spotify-import
- Owner: w3bdesign
- License: mit
- Created: 2023-05-31T02:12:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T16:18:43.000Z (7 months ago)
- Last Synced: 2024-05-29T07:27:34.130Z (7 months ago)
- Topics: flask, python, spotify, spotipy
- Language: JavaScript
- Homepage:
- Size: 167 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Screenshots
![Screenshot 1 of project](https://user-images.githubusercontent.com/45217974/266754191-83d88be5-74ad-40f4-b24a-362caa311510.png)
![Screenshot 2 of project](https://user-images.githubusercontent.com/45217974/242784809-c34a2a64-9629-4c5c-ab99-c0a0218820d5.png)
# Spotify Playlist Creator
A Flask web application that allows users to use GPT-4 to generate song recommendations, then create a new Spotify playlist or import to an existing one.
## Features
- GPT-4 based song recommendations
- Play button to listen to each song
- Create a new Spotify playlist
- Import to an existing playlist
- Custom toast design with Toastify
- Deployment is possible via Docker
- Spotify favicon## Installation
To set up the project, follow these steps:
1. Clone the repository:
```
git clone https://github.com/w3bdesign/spotify-import.git
cd spotify-playlist-creator
```2. Install the required packages:
```
pip install -r requirements.txt
```3. Rename `.env.example` to `.env` and modify the values accordingly.
Replace the placeholders with your actual Spotify developer credentials and desired redirect URI.
You can obtain your Spotify developer credentials from the [Spotify Developer Dashboard](https://developer.spotify.com/dashboard/applications).
## Docker
Deployment is possible via Docker:
```
git clone https://github.com/w3bdesign/spotify-import.gitcd spotify-import
docker build -t spotify-import .
```Start Docker like this:
```
docker run -d -p 5000:5000 \
-e SPOTIPY_CLIENT_ID=changeme \
-e SPOTIPY_CLIENT_SECRET=changeme \
-e SPOTIPY_REDIRECT_URI=changeme \
-e OPENAI_API_KEY=changeme \
-e OPENAI_API_BASE_URL=changeme \
spotify-import
```## Usage
To run the application locally, execute the following command:
```
cd app
python main.py
```The application will start running on `http://127.0.0.1:5000/`.
Open this URL in your web browser to access the Spotify Playlist Creator.