Giter Site home page Giter Site logo

Spotify Playlist Creator

Spotify Playlist Creator is a Python script that allows you to create personalized playlists on Spotify based on your recently played tracks and recommended songs.

Description

Spotify Playlist Creator is a handy Python script that uses the Spotify API to fetch your recently played tracks, ask for your preferred seed tracks, and then generates a playlist with personalized recommendations. It provides an interactive experience for discovering new music based on your listening habits.

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/your-username/spotify-playlist-creator.git
cd spotify-playlist-creator
  1. Install the required Python packages:
pip install spotipy
  1. Register your Spotify application and obtain the necessary credentials (Client ID and Client Secret) from the Spotify Developer Dashboard.

  2. Add your Spotify application's Redirect URI to the dashboard settings.

  3. Open the spotify_playlist_creator.py file and replace the placeholders with your Spotify application's Client ID, Client Secret, and Redirect URI:

# Replace these placeholders with your actual credentials
client_id = "YOUR_CLIENT_ID"
client_secret = "YOUR_CLIENT_SECRET"
redirect_uri = "YOUR_REDIRECT_URI"

Usage

  1. Run the spotify_playlist_creator.py script:
python spotify_playlist_creator.py
  1. Follow the instructions prompted on the terminal:

    • View your recently played tracks.
    • Choose up to 5 seed tracks for recommendations.
    • Create a new playlist and add the recommended tracks to it.
  2. Enjoy your personalized playlist on Spotify!

Features

  • Fetches your recently played tracks from Spotify.
  • Allows you to select seed tracks for generating personalized recommendations.
  • Creates a new private playlist and adds the recommended tracks to it.

Contributing

We welcome contributions to improve Spotify Playlist Creator. To contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b my-feature-branch.
  3. Make changes and commit them: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin my-feature-branch.
  5. Open a pull request.

Please ensure your code follows the project's coding standards and includes appropriate documentation.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

Special thanks to the Spotipy library for simplifying the interaction with the Spotify API.


Saravanan V's Projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.