import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
from dotenv import load_dotenv
import os

load_dotenv()

client_id = os.getenv("client_id")
client_secret = os.getenv("client_secret")

def spotify_api():
    client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)
    sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)

    return sp
97df14ba1b04111f8625cbd3ed4eaf2e4d0b4af7
<mask token>

<mask token>


def spotify_api():
    client_credentials_manager = SpotifyClientCredentials(client_id=
        client_id, client_secret=client_secret)
    sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
    return sp

<mask token>
load_dotenv()
client_id = os.getenv('client_id')
client_secret = os.getenv('client_secret')


def spotify_api():
    client_credentials_manager = SpotifyClientCredentials(client_id=
        client_id, client_secret=client_secret)
    sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
    return sp

import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
from dotenv import load_dotenv
import os
load_dotenv()
client_id = os.getenv('client_id')
client_secret = os.getenv('client_secret')


def spotify_api():
    client_credentials_manager = SpotifyClientCredentials(client_id=
        client_id, client_secret=client_secret)
    sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
    return sp

import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
from dotenv import load_dotenv
import os

load_dotenv()

client_id = os.getenv("client_id")
client_secret = os.getenv("client_secret")

def spotify_api():
    client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)
    sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)

    return sp