Skip to content

Nitin-coder-13/Spotify-playlist-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Spotify Playlist Generator

A Python-based application that demonstrates Spotify API integration using the Spotipy library. This project allows users to generate and manage Spotify playlists programmatically.

Features

  • 🎵 Generate custom Spotify playlists
  • 🔌 Spotify API integration using Spotipy
  • 🐍 Clean Python implementation
  • 📊 Demonstrates RESTful API calling patterns

Technologies Used

  • Python - Core programming language
  • Spotipy - Spotify Web API wrapper for Python
  • Spotify API - Music data and playlist management

Prerequisites

Before running this project, ensure you have:

  • Python 3.7 or higher installed
  • A Spotify account
  • Spotify API credentials (Client ID and Client Secret)

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/spotify-playlist-generator.git
cd spotify-playlist-generator
  1. Install required dependencies:
pip install spotipy
  1. Set up your Spotify API credentials:

  2. Create a .env file or configure your credentials:

SPOTIPY_CLIENT_ID='your-client-id'
SPOTIPY_CLIENT_SECRET='your-client-secret'
SPOTIPY_REDIRECT_URI='your-redirect-uri'

Usage

Run the application:

python main.py

Follow the prompts to authenticate with Spotify and generate your playlist.

Project Structure

spotify-playlist-generator/
├── main.py              # Main application file
├── requirements.txt     # Project dependencies
├── .env                 # Environment variables (not tracked)
└── README.md           # Project documentation

API Documentation

This project uses the Spotify Web API through the Spotipy library. Key endpoints used include:

  • User authentication
  • Playlist creation
  • Track search and addition

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.

Acknowledgments

Contact

For questions or feedback, please open an issue on GitHub.


⭐ If you found this project helpful, please consider giving it a star!

About

Spotify playlist generator demonstrating Api calling using python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages