Dev working with spotify

This commit is contained in:
BarsTiger
2023-10-15 23:40:28 +03:00
parent 1724a00e4c
commit 053f2339fd
3 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
from .song import Songs
class Spotify(object):
def __init__(self, client_id, client_secret):
self.spotify = spotipy.Spotify(
client_credentials_manager=SpotifyClientCredentials(
client_id=client_id,
client_secret=client_secret
)
)
self.songs = Songs(self.spotify)