davidfrisch / spotify_to_ytmusic

Simple script to copy your spotify playlists to youtube music

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

Install

    pip3 install -r requirements.txt

Setup api tokens

Youtube music

Run the following command in the terminal and follow the instructions

   ytmusicapi oauth

and then name the file youtube_auth.json and place it in the root directory of the project

Spotify

Visit this link and create a new app. Then copy the client id and client secret into a file called .env in the root directory of the project like so:

    SPOTIPY_CLIENT_ID=your_client_id
    SPOTIPY_CLIENT_SECRET=your_client_secret
    SPOTIPY_REDIRECT_URI='http://localhost'
    USERNAME=your_username

Tip: You can find your username by going to your spotify profile and clicking the three dots next to your profile picture and then clicking share and copying the link. Your username is the string of numbers and letters after the last slash.

Run

    python3 main.py

Disclaimer: This project is not affiliated with Spotify or Youtube Music in any way. And Github Copilot was used to generate to write this repository.

About

Simple script to copy your spotify playlists to youtube music


Languages

Language:Python 100.0%