Parse Spotify URI to youtube link
Project description
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sp_yt_search-1.1.2.tar.gz
(7.7 kB
view details)
File details
Details for the file sp_yt_search-1.1.2.tar.gz
.
File metadata
- Download URL: sp_yt_search-1.1.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 943a0589ff3f30f231ec4bec38e7cbb8cdc8969915a2a920a3293c4a4340ccbe |
|
MD5 | abb91de5a968322bce01abdad1329c7e |
|
BLAKE2b-256 | d2caa7e4c8dc62356a081c83ea7b53e3be2bc78d3b6bd4d733b2afdb9b627667 |