GithubHelp home page GithubHelp logo

demirdegerli / spotify-to-youtube Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 0.0 84 KB

Convert Spotify playlists to YouTube playlists

License: GNU General Public License v3.0

Python 100.00%
playlist python spotify youtube youtube-music yt-music ytmusic ytmusicapi

spotify-to-youtube's Introduction

Spotify to YouTube

Convert your Spotify playlists into YouTube playlists.

Get started

  • Install the required packages
pip3 install -r requirements.txt
  • Get Spotify credentials
    • Go to the Spotify Developer Dashboard
    • If there is an app named for Everything use it's credentials.
    • If there is no app click CREATE AN APP.
    • Type http://localhost:8080/ to the 'Redirect URI` textbox.
    • Select Web API in the Which API/SDKs are you planning to use? section.
    • Fill the other sections if you want and click CREATE.
    • Click Settings, copy Client ID and Client Secret.
    • You'll use these credentials once you run the script. So keep them in your clipboard or save them.
  • Get YouTube credentials
    • Open a new tab
    • Open the developer tools (Ctrl-Shift-I) and select the “Network” tab
    • Go to YouTube Music and ensure you are logged in
    • Find an authenticated POST request. The simplest way is to filter by /browse using the search bar of the developer tools. If you don’t see the request, try scrolling down a bit or clicking on the library button in the top bar.
    • If you're using Firefox (easiest way)
      • Verify that the request looks like this: Status 200, Method POST, Domain music.youtube.com, File browse?...
      • Copy the request headers (right click > copy > copy request headers)
    • If you're using a Chromium based browser like Chrome, Edge etc.
      • Verify that the request looks like this: Status 200, Name browse?...
      • Click on the Name of any matching request. In the “Headers” tab, scroll to the section “Request headers” and copy everything starting from “accept: /” to the end of the section
    • Create a file called oauth.txt in the project directory. Paste the credentials that you copied. Close the file.

Run

python3 main.py

spotify-to-youtube's People

Contributors

demirdegerli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spotify-to-youtube's Issues

Only 100 tracks are being found and added

The title says it. I am trying to move a playlist that has 300+ songs, but after adding the playlist URL it says that the playlist has only 100 songs. For some reason it gets only the first 100 songs of the playlist. I am not good at coding, but I don't see any cap on the amount of songs in the code so it is a bit confusing why this happens.

credentials in the oauth.txt file are missing or wrong

First of all thanks for creating this tool!

"The credentials in the oauth.txt file are missing or wrong. Please paste the YouTube credentials into the oauth.txt file correctly. Quitting..."

Pretty sure I did everything correct, logged in YT music.

image

image

Sorry if I redacted too much, please tell me if you need more info.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.