Easily convert Spotify songs to Youtube Playlists
-
This tool may not be perfect. It works by generating a keyword search with the Spotify song title and artists and taking the first result from YouTube. It may not be 100% accurate.
-
You will need to create a Google Developer Console application (a guide is listed below)
-
You will need to create a Spotify Developer Application (a guide is listed below)
- Go to https://console.developers.google.com/ and sign in with the Google account you want the playlist on
- Next to the Google Cloud logo, clikc on Select a Project
- Click on New project
- Give the project a name
- Leave organization set as
No organization
- Click Create
- Wait for the project to finish creating. Then click Select a project again and select the project you just created
- On the dashboard, the page that says "Welcome" and has "You're working in <project name here>", click on APIs and Services. It's under the Quick access header.
- On the left hand side in the navigation bar, find the Credentials link and click it.
- On the top, you will see a Create Credentials link, click it.
- Choose OAuth client ID
- You'll need to configure the Consent screen. Click on the Configure Consent Screen button then the Get Started button
- Under App Information name the app anything. I recommend
Spotify-YouTube converter
for the name and just choose your email for User support email - Click Next then under Audience, choose External
- Click Next then under Contact Information just put your email address
- Click Next then under Finish check the I agree statement.
- Click Finish
- On the navigation bar on the left side, click Clients then click Create Client
- Set the Application type to Desktop app and name it. You can leave the name as defaulted.
- After you've created the client, click on it.
- Under Aditional information find Client secrets. There will be a section that says Client secret with a downward facing arrow. Download the JSON file to the root directory of this notebook. RENAME THE DOWNLOADED FILE TO
creds
BEFORE DOWNLOADING. - Click on Audience in the side menu on the left. Then find Test users. Add your email address to it. Because this application is not published and approved by Google, only test users will be able to signin to it.
- Click on the Google Cloud logo and APIs and Services again.
- Click Enable APIs and Services and search for YouTube Data API v3
- Click on it and click the Enable button.
- Your done setting up the Google side of things.
- Go to https://developer.spotify.com/ and sign in and navigate to your Dashboard
- Click on Create app
- Name the app. Add a description. It does not matter what.
- For Redirect URIs put
http://localhost:3000
. This doesn't matter for this application as its not relying a client web server or anything. - Under Which API/SDKs are you planning to use? select Web API
- Accept the terms
- When your redirected to the apps dashboard, click on the Settings button on the top.
- Copy the Client ID and paste it into the cell under the variable
SPOTIFY_CLIENT_ID
- Copy the Client SECRET and paste it into the cell under the variable
SPOTIFY_CLIENT_SECRET
- Your done setting up the Spotify side of things.
- Download from the GitHub repo.
- Make sure you have a Jupyter environment or download the Jupyter extension in VS code
- Make sure python is downloaded on your machine
- Open the Notebook in your environment and select the Kernel
- I recommend running each cell 1 by 1 but you can click on the Run All button if you prefer.
- You need to have a playlist on YouTube created first before running the Notebook. This application does not create a YouTube playlist. 7.) Follow the steps as prompted.
Uh just figure it out. I am not maintaining this. I may make a web app for this at somepoint. I will post it here if I do.