Skip to content

fabian-thomas/python-odesli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-odesli

Odesli/Songlink API wrapper for python.

Currently using version v1-alpha.1 of the Odesli API.

Installation

pip install odesli

From source

Install the PyPI package build:

pip install build

Then (from the root of the repo):

python -m build
pip install dist/*.whl

Usage

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'])

class diagram

For more information refer to the official Odesli API documentation.

Projects using this wrapper

About

Odesli/Songlink API wrapper for python.

Topics

Resources

Stars

Watchers

Forks

Languages