Skip to main content

"Copy Spotify playlists, saved albums/artists/tracks to Tidal"

Project description

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(
	tidal_username="name",
	tidal_password="pwd",
	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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spotify2tidal-1.1.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

spotify2tidal-1.1-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file spotify2tidal-1.1.tar.gz.

File metadata

  • Download URL: spotify2tidal-1.1.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for spotify2tidal-1.1.tar.gz
Algorithm Hash digest
SHA256 c9af8298ec3e8d2655b5427c000a198cfe1058ac1d5e1a04b9839ee788f5f78e
MD5 58ebf93a108937df89465611c447861b
BLAKE2b-256 5362dcfe15e11647c0166aaaf822347b24a9f2e113f8c3900e0aa041d02b7ed8

See more details on using hashes here.

File details

Details for the file spotify2tidal-1.1-py3-none-any.whl.

File metadata

  • Download URL: spotify2tidal-1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for spotify2tidal-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5775ff804de7499e9086afba4c791e3f842a52b35c4d179311d8b5ce5c149f38
MD5 3e70929830395cd1785eb851bf3e9445
BLAKE2b-256 f16f4e6cc4220e823c705ef7e5e76161d3216673774109da9c2a1250a5c4345f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page