Skip to content

Ofekw/spotube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spotube CLI

A CLI tool to migrate your Spotify "Liked Songs" and playlists to YouTube Music.

Prerequisites

  • .NET 8.0 SDK or later
  • A Spotify Account
  • A Google Account (YouTube)

Setup

1. Spotify API Setup

  1. Go to the Spotify Developer Dashboard.
  2. Log in and click "Create App".
  3. Fill in the App Name (e.g., "Spotube CLI") and Description.
  4. In the "Redirect URIs" field, add http://127.0.0.1:5000/callback.
  5. Save the app.
  6. Note down the Client ID and Client Secret.

2. Google (YouTube) API Setup

  1. Go to the Google Cloud Console.
  2. Create a new project.
  3. Enable the YouTube Data API v3.
  4. Go to "Credentials" -> "Create Credentials" -> "OAuth client ID".
  5. Select "Desktop app" as the application type.
  6. Note down the Client ID and Client Secret.
  7. Download the JSON file and save it as client_secrets.json in the project root (optional, or just use the ID/Secret).

3. Configuration

You can use .NET User Secrets to store your credentials securely.

Run the following commands in the src/Spotube.CLI directory:

dotnet user-secrets init
dotnet user-secrets set "Spotify:ClientId" "<your-spotify-client-id>"
dotnet user-secrets set "Spotify:ClientSecret" "<your-spotify-client-secret>"
dotnet user-secrets set "YouTube:ClientId" "<your-google-client-id>"
dotnet user-secrets set "YouTube:ClientSecret" "<your-google-client-secret>"

Usage

Run the application:

dotnet run --project src/Spotube.CLI

Follow the on-screen instructions to authenticate and migrate your music.

About

Spotify to Youtube Music Migration tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages