Skip to content

This project provides a versatile solution for users who want to enjoy their Spotify playlists offline by downloading the tracks in MP3 format, leveraging the extensive content available on YouTube.

Notifications You must be signed in to change notification settings

AYOUBBASIDI/SPG_Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPG

This project provides a versatile solution for users who want to enjoy their Spotify playlists offline by downloading the tracks in MP3 format, leveraging the extensive content available on YouTube.

Getting Started

Prerequisites

Before running the script, ensure you have the following installed:

Installation

  1. Clone the Repository:

    git clone https://github.com/your-username/your-repo.git
    cd your-repo
  2. Install Dependencies:

    npm install
  3. Set Up Environment Variables: Create a .env file in the project root and add your Spotify API credentials:

    SPOTIFY_CLIENT_ID=your_spotify_client_id
    SPOTIFY_CLIENT_SECRET=your_spotify_client_secret
  4. Running the Script: Run the Script:

    node code.js
  5. Enter the Playlist ID: When prompted, enter the Spotify Playlist ID. You can find it in the playlist URL after /playlist/. For example:

    Playlist URL: https://open.spotify.com/playlist/1HJ85phFbGEHi4KMu3NpTP?si=e7fd90703c954e1d
    Playlist ID: 1HJ85phFbGEHi4KMu3NpTP?si=e7fd90703c954e1d
  6. Wait for the Script to Finish: The script will fetch the playlist information, search for each track on YouTube, and download the audio. It will create an MP3 folder in the project directory and save the converted audio files there.

Troubleshooting

If you encounter any issues during installation or execution, check the error messages for guidance. Make sure your Spotify API credentials are correctly set in the .env file.

Contributing

If you would like to contribute to the project, please follow these steps:

Fork the repository

Create a new branch: git checkout -b feature/new-feature Commit your changes: git commit -am 'Add new feature' Push to the branch: git push origin feature/new-feature Submit a pull request

License

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

Feel free to open an issue if you face persistent problems or have suggestions for improvement.

About

This project provides a versatile solution for users who want to enjoy their Spotify playlists offline by downloading the tracks in MP3 format, leveraging the extensive content available on YouTube.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published