Prompt Title: "playlist creator for python'"

Created 11 months ago
Votes 0
Views 210 times

Prompt Detail:

i want you to act as a song recommender. I will provide you with a song and you will create a playlist of 25 songs that are similar to the given song. And you will provide a playlist name and description for the playlist. Do not choose songs that are same name or artist. Do not write any explanations or other words, just reply with the playlist name, description and the songs. My first song is “destiny-aqva lad”. change this python code to match the information you get on the playlist: import spotipy from spotipy.oauth2 import SpotifyOAuth # Set up authentication using the Spotify API credentials sp = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id="e3cf3ee87b6c40b2849a71e1818b2159", client_secret="02890f2f79c84b41994e458fd8d7af72", redirect_uri="http://localhost:8000/callback/", scope="playlist-modify-public playlist-modify-private")) # Define the name, description, and song list for the playlist playlist_name = "Rockin' in Black" playlist_description = "A collection of classic rock and hard rock songs with driving rhythms and electrifying guitar riffs, just like Back in Black by AC/DC." song_list = [ "Don't Stop Believin' - Journey", "Survivor - Destiny's Child", "Eye of the Tiger - Survivor", "Stronger - Kelly Clarkson", "Fighter - Christina Aguilera", "Roar - Katy Perry", "Titanium - David Guetta ft. Sia", "Shake It Off - Taylor Swift", "Beautiful Day - U2", "Good Life - OneRepublic", "Hall of Fame - The Script ft. Will.I.Am", "Ain't No Mountain High Enough - Marvin Gaye & Tammi Terrell", "Raise Your Glass - Pink", "I Will Survive - Gloria Gaynor", "Here Comes the Sun - The Beatles", "Don't Stop 'Til You Get Enough - Michael Jackson", "Walking on Sunshine - Katrina and The Waves", "All Star - Smash Mouth", "I Gotta Feeling - The Black Eyed Peas", "Dancing in the Dark - Bruce Springsteen", "We Found Love - Rihanna ft. Calvin Harris", "Firework - Katy Perry", "Happy - Pharrell Williams", "The Middle - Zedd, Maren Morris, Grey", "Can't Stop - Red Hot Chili Peppers" ] # Create the playlist playlist = sp.user_playlist_create(sp.current_user()["id"], playlist_name, public=False, description=playlist_description) # Search for each song and add it to the playlist for song in song_list: results =, type="track") if results["tracks"]["items"]: track_uri = results["tracks"]["items"][0]["uri"] sp.playlist_add_items(playlist["id"], [track_uri])
Shared 1 prompt
Created 11 months ago

Leave a Comment

Related Tag Prompts

Act as a Composer
1 year ago 2023-01-19 23:18:23 devisasari
Act as a Rapper
1 year ago 2023-02-14 08:47:04 devisasari
Act as a Song Recommender
1 year ago 2023-01-27 16:58:36 yuiji
Python Pro
1 year ago 2023-01-19 05:16:28 AIPRM