Giter VIP home page Giter VIP logo

spotify2tidal's Introduction

spotify2tidal

spotify2tidal moves playlists, favorite albums and tracks and following artists from a Spotify account to a Tidal account. It combines spotipy and tidalapi to do so.

Installation

To install, run

pip install spotify2tidal

Spotify API credentials

Spotify's API requires a registered client with a client ID, client secret and a redirection URI (see client credential flow for more information). To obtain all three of them, head over to the Spotify developer dashboard and create a new app. This will generate both ID and secret for you. To use a redirection link in the application, you need to first whitelist it for your client. On the app settings add one to 'Redirect URIs'. If unsure, simply use https://localhost.

Spotify 'Discover Weekly' playlist ID

In case you intend to also use your 'Discover Weekly' playlist, you need to obtain the corresponding ID for it. This is necessary because this particular playlist isn't exposed like the rest of you playlist through the API. To get the ID, simply go to your 'Discover Weekly' playlist, click on the three dots -> Share -> Copy Link. The ID you are looking for is then between "https://open.spotify.com/user/spotify/playlist/" and "?si=".

Usage

After obtaining all credentials, transferring content is rather simple.

from spotify2tidal import Spotify2Tidal

st = Spotify2Tidal(
	spotify_client_id="id",
	spotify_client_secret="sec",
	spotify_redirect_uri="uri",
	spotify_discover_weekly_id="weekly",
	)
	
st.copy_discover_weekly()

More examples can be found in the examples directory.

spotify2tidal's People

Contributors

fwinn avatar taschenb avatar

spotify2tidal's Issues

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.