Odesli/Songlink API wrapper for python.
Currently using version v1-alpha.1
of the Odesli API.
pip install odesli
Install the PyPI package build
:
pip install build
Then (from the root of the repo):
python -m build
pip install dist/*.whl
Convert Spotify link to Tidal and Youtube Music links:
from odesli.Odesli import Odesli
odesli = Odesli()
result = odesli.getByUrl('https://open.spotify.com/track/1jJci4qxiYcOHhQR247rEU')
print(result.songsByProvider['tidal'].linksByPlatform['tidal'])
print(result.songsByProvider['youtube'].linksByPlatform['youtubeMusic'])
For more information refer to the official Odesli API documentation.