https://github.com/fabian-thomas/python-odesli
Odesli/Songlink API wrapper for python.
https://github.com/fabian-thomas/python-odesli
api odesli songlink
Last synced: 5 months ago
JSON representation
Odesli/Songlink API wrapper for python.
- Host: GitHub
- URL: https://github.com/fabian-thomas/python-odesli
- Owner: fabian-thomas
- Created: 2021-10-12T15:27:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-02T16:41:12.000Z (over 4 years ago)
- Last Synced: 2025-10-11T09:00:00.236Z (8 months ago)
- Topics: api, odesli, songlink
- Language: Python
- Homepage:
- Size: 95.7 KB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-odesli
Odesli/Songlink API wrapper for python.
Currently using version `v1-alpha.1` of the Odesli API.
## Installation
```bash
pip install odesli
```
### From source
Install the PyPI package `build`:
```bash
pip install build
```
Then (from the root of the repo):
```bash
python -m build
pip install dist/*.whl
```
## Usage
Convert Spotify link to Tidal and Youtube Music links:
```python
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](https://www.notion.so/API-d0ebe08a5e304a55928405eb682f6741).
## Projects using this wrapper
- [odesli-cli](https://github.com/fabian-thomas/odesli-cli)