Parse Spotify URI to Youtube link
Installation
Just use (No other package is needed):
$ pip install sp_yt_search
Example Usage
from sp_yt_search import SpYt
if __name__ == '__main__':
# Setup credentials
client_id = 'spotify_api_client_id'
secret = 'spotify_api_secret'
# Provide Spotify URI
uri = 'spotify:track:4uLU6hMCjMI75M1A2tKUQC'
sp = SpYt() # Initialize SpYt object
sp.set_credentials(client_id, secret) # Auth Spotify
sp.sp_search(uri) # Search for URI
print(sp.get_data()) # Prints found spotify objects
sp.yt_search() # Perform YT search for found Spotify objects
print(sp.get_data()) # Prints spotify objects with YouTube related results
Availible URIs
Package can be used for fetching:
Track:
spotify:track:{ID}Playlist:
spotify:playlist:{ID}Album:
spotify:album:{ID}Artist:
spotify:artist:{id}}
See me on github
License MIT
Free Software, Hell Yeah!
Metadata
Release files for sp-yt-search 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sp_yt_search-1.1.2.tar.gz | 7.7 kB | Details |
Release files / sp_yt_search-1.1.2.tar.gz
| Download URL | sp_yt_search-1.1.2.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
943a0589ff3f30f231ec4bec38e7cbb8cdc8969915a2a920a3293c4a4340ccbe
|
|
BLAKE2b-256 checksum How to use checksums |
d2caa7e4c8dc62356a081c83ea7b53e3be2bc78d3b6bd4d733b2afdb9b627667
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|