This is a Python-based desktop application that displays the currently playing song on Spotify. It also allows users to control playback (play, pause, skip, previous) and search for songs to play. The application uses the Spotify API to fetch real-time track information and is built using the Tkinter GUI library.
This is an unofficial application and is not affiliated with, endorsed, or sponsored by Spotify. It simply uses the Spotify Web API to provide playback control and track information.
- Displays the currently playing song, artist, and album information.
- Shows the album cover of the currently playing track.
- Provides playback controls: play/pause, next track, previous track.
- Displays the song progress and allows seeking within the song.
- Allows users to search for and play songs directly from the application.
To use this application, you will need:
- Spotify API Credentials: You must have a Spotify Developer account and create an application to get the required credentials.
- Python 3.x installed on your system.
- The following Python libraries installed:
tkinter(comes with Python)spotipypillowrequests
- Go to the Spotify Developer Dashboard.
- Log in with your Spotify account.
- Click on "Create an App" and fill in the required details.
- Once the app is created, navigate to Settings and add
http://localhost:7777/callbackas a Redirect URI. - Copy the Client ID and Client Secret from the dashboard.
- Clone or download this repository.
- Install the required dependencies using pip:
pip install spotipy pillow requests
- Replace
your client IDandyour client secretin the script with your Spotify API credentials.
- Run the application:
python app.py
- Log in with your Spotify account when prompted.
- The GUI will display the currently playing song and allow you to control playback.
- Play/Pause Button: Toggle playback.
- Next Track Button: Skip to the next song.
- Previous Track Button: Go back to the previous song.
- Search Bar: Enter a song name and press the search button to play it.
- Progress Bar: Click on it to seek within the current song.
- Ensure you have an active Spotify Premium account for full playback control.
- The application only works when Spotify is actively playing music on a connected device.
- Make sure your redirect URI in the Spotify Developer Dashboard matches the one in the script.
This project is licensed under the MIT License. See the LICENSE file for details.
Note: This project is not affiliated with or endorsed by Spotify.