Skip to content

Repository files navigation

Spotify Liked Toggle

This script allows you to toggle the like status of the currently playing song on Spotify using the Spotipy library and winotify with requests for notifications.

Requirements

  • Python 3.x
  • Spotipy, python-dotenv, winotify and requests packages
  • Spotify account with an active session
  • Spotify app registered in the Spotify Developer Dashboard

Installation

Automatic installation (recommended):

  1. Download the repository.
  2. Install Python 3.x from the official website.
  3. Set up your Spotify app in the Spotify Developer Dashboard.
  4. Set your redirect URI to http://127.0.0.1:8888/callback.
  5. Run the install.bat file to install the required dependencies and set up the environment.
  6. Follow the prompts to enter your Spotify credentials.

Manual installation:

  1. Download the repository.

  2. Install Python 3.x from the official website.

  3. Install all required packages in one command:

    pip install spotipy python-dotenv winotify requests
  4. Set up your Spotify app in the Spotify Developer Dashboard.

  5. Set your redirect URI to http://127.0.0.1:8888/callback.

  6. Create a .env file in the root directory of the project.

  7. Obtain your SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET and place them in .env file:

    SPOTIFY_CLIENT_ID=your_client_id
    SPOTIFY_CLIENT_SECRET=your_client_secret
    NOTIFICATIONS_ENABLED=your_notification_preference (true/false)

Usage

To like or remove from liked the currently playing song, run the corresponding batch file:

  • To like the song, run like.bat.
  • To remove the song from liked, run dislike.bat.

Note

If you use apps like Razer Synapse you may add the script to your macros to run it with a press of a key. To do this:

  1. Select a key.
Selecting a key
  1. Go into Launch category and select path to the launch.bat file.
Selecting launch.bat
  1. Save the macro.

About

Script to toggle the like status of currently playing song on Spotify with ease

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages