SpotSong is a Java-based application that allows users to download songs from Spotify playlists using the Spotify API and YouTube. It integrates with the Spotify API to retrieve playlist details and uses a YouTube downloader to fetch and save audio tracks locally. Built with Maven, this project simplifies the process of creating a personal music library from Spotify playlists.
- Fetch Spotify playlists using the Spotify API.
- Download songs from YouTube based on the retrieved playlist data.
- Simple and efficient Java-based implementation.
- Java 8 or higher
- Maven
- Spotify Developer Account for API access
- YouTube downloader library
-
Clone the Repository:
git clone https://github.com/Sundhar22/SpotSong.git
-
Spotify API Setup:
- Create a Spotify Developer account.
- Register your application and get the Client ID and Client Secret.
- Set up the Redirect URI for authentication.
-
Configure the Application:
- Add your Spotify API credentials to
application.properties
or as environment variables:
spotify.client.id=YOUR_CLIENT_ID spotify.client.secret=YOUR_CLIENT_SECRET
- Add your Spotify API credentials to
-
Build the Project:
mvn clean install
-
Run the Application:
mvn exec:java
- Login: Authenticate with your Spotify account to allow the application to access your playlists.
- Select Playlist: Choose a Spotify playlist to download songs from.
- Download Songs: The application fetches songs from YouTube based on the playlist data and downloads them.
This project is licensed under the MIT License.
This tool is intended for personal use only. Downloading copyrighted material without permission is illegal. Ensure that you have the rights to download and use the content you are accessing.