This script allows you to convert a Spotify playlist to a YouTube playlist.
-
Clone the repository:
git clone https://github.com/your_username/spotify-to-youtube-playlist-converter.git cd spotify-to-youtube-playlist-converter
-
Create and activate a new virtual environment:
python3 -m venv venv source venv/bin/activate # for Linux/macOS venv\Scripts\activate.bat # for Windows
-
Install the required packages:
pip install -r requirements.txt
-
Authenticate with the Spotify API by setting the following environment variables:
export SPOTIPY_CLIENT_ID= export SPOTIPY_CLIENT_SECRET= export SPOTIPY_REDIRECT_URI=http://localhost:8000/callback export YOUTUBE_TOKEN=
-
Authenticate with the YouTube API by following the instructions in the script.
-
Run the script:
python3 main.py
-
Enter the Spotify playlist URL when prompted.
-
Wait for the script to convert the playlist and add the tracks to a new YouTube playlist.
-
Deactivate the virtual environment:
deactivate
This project is licensed under the MIT License. See the LICENSE file for details.