This is a simple Python script that allows you to control Spotify playback from the terminal using Spotify's Web API.
- Play, pause, skip, and adjust volume of Spotify tracks.
- Display currently playing track information.
- Search for tracks and play them.
Before running the script, you need to set up a Spotify Developer account and obtain your Client ID and Client Secret. You also need to register a Redirect URI for your application.
-
Clone this repository:
git clone https://github.com/puppykiwi/Spotter.git
-
Install the required Python packages:
pip install -r requirements.txt
-
Set up your Spotify Developer account and obtain your Client ID and Client Secret.
-
Configure the script with your Client ID, Client Secret, and Redirect URI.
-
Run the script:
python spotify_player.py
-
Follow the instructions to authenticate with Spotify.
-
Once authenticated, you can use the following commands:
play
: Resume playback.pause
: Pause playback.next
: Skip to the next track.prev
: Return to the previous track.search <query>
: Search for tracks byquery
and play the selected track.volume <level>
: Adjust the volume level (0-100).info
: Display information about the currently playing track.
Contributions are welcome! Feel free to submit pull requests or open issues for any bugs or feature requests.