Create Spotify Playlists Using Python

preview_player
Показать описание
In this video, I show a simple Python application that leverages the Spotify Web API to generate Spotify playlists 🎧 🎧 using reference tracks from a user’s listening history.

By watching the video you can get a feeling of the Spotify Web API, learn about content-based recommendation, and get an idea of how the Spotify’s recommendation algorithm (probably!) works.

Source Code:

Join The Sound Of AI Slack community:

Interested in hiring me as a consultant/freelancer?

Follow Valerio on Facebook:

Connect with Valerio on Linkedin:

Follow Valerio on Twitter:
Рекомендации по теме
Комментарии
Автор

Extremely helpful, Valerio! Thank you! I've been working on a Playlist Project for the past month, and been stuck. This was very comprehensive and practical.

Melpat
Автор

Thank you very much! I'm brazillian and looking forward to making a wpp text become a spotify playlist so that is simpler to choose the best ones to play in my celebration of marriage!! :) let's build it up

cacatua
Автор

Thanks Valerio, this helped me understand the API call. I've been trying so many ways.

kkevinluke
Автор

You explain concepts very well, keep up the good work!

iluvsyphonfilter
Автор

Brilliant video thank you! This is awesome, learning Python combined with one of my most use apps!

stahmedpendragonguinevere
Автор

THANK YOU SO MUCH, I've been trying to make a program that would give me recommended songs that I liked from spotify's Discover Weekly and it worked perfectly!!

Knnth
Автор

Thank you so much for this video!! It is exactly what I needed for a spotify script I'm trying to implement!!

emko
Автор

Thank you so I was working on a similar application but kept running into authorization issues. Turns out I was using the wrong flow. I had almost gave up on it for a couple of days... thanks to you I can now get back on track!

-LTUIiiin
Автор

This is great and a huge help. I am trying to make playlist based on genre so that I can more easily share my music.

kennytieshisshoes
Автор

Hi super great video just wondering how to access the endpoint to get my user id?

freeziellama
Автор

Hi Valerio, I want to ask you a question:
I am trying to make a Spotify API that gives me a list of Disco / Funk songs that also tells me the BPM and its key from 1975 to 1989.
I know there are sites that do this, but I cannot select the period that interests me.
Is it a feasible request?

drjfilix
Автор

I have mp3's local to my hard drive. Is there a way to create a playlist from that?

espowari
Автор

Nice video, thank you! Are these audio features from spotify calculated with any type of encoder? I search a little bit how they calcule "danceability" and "energy" but do not find anything.

GMTobiasRM
Автор

How do you get the users token in the new Spotify for developers i cant find it

adolfogilio
Автор

i have a question. Someone keeps false reporting my playlist that has a pretty good following on it... everytime they report spotify just takes my playlist name, photo and description off. Ive tried contacting them but they never reply the reports keep happening and there is nothing wrong with my playlist. me and some other curators are having the same problem and spotify ignores us... Do you think you could help me? I dont know what to do anymore I'm so stressed and upset..

ktswrld
Автор

brother i have a list of urls of spotify tracks, can i use it to create a playlist

mainak.halder
Автор

Hey, awesome video, and I really like the way this program works. I am a new dev and I am trying to get this to work on my machine but I am having difficulties. I activate the virtual environment, set the spotify auth token and userID, but when I run the createplaylist module, after I pass in the value for how many songs I'd like for it to visualize, I receive a keyError for 'items'. I sent you a request to connect on LinkedIn, but I'd like to talk to you more about this program!

musicface
Автор

Nice video! Thanks for all the explanation!
One question: Do you think is it possible to create a playlist generator using a nocode plataform like Bubble?
Thanks!

gugaweigert
Автор

Hey, do you know if the code is still functional?
I am getting the following error:

line 30, in get_last_played_tracks
track in response_json["items"]]
KeyError: 'items'

I'm not too sure how to solve but I'm sure it's a pretty simple fix.
Any help would be appreciated, thanks!

maxshapovalov
Автор

Trying to give this a go but hit a roadblock, if someone can please help? I have the new playlist generating through the web api with up to 50 tracks, however, after running from cli with the updated auth token (recently played tracks from spotify) and user ID, it's only finding the same old 3 last_played_tracks, even though I input 15 tracks to visualize from and have since updated the listener history with 20+ new tracks. Suggestions on how to fix so the user can choose from a longer list than 3?

caitlinhogan
join shbcf.ru