This tutorial will show you how to get a users playlists from the Spotify API.

We use a library called Spotipy to make this easier, and you can build on top of this to retrieve other things like songs, artists, albums and much much more.

If you want a more deeper understanding of the Spotify API and OAuth, check this video:
https://youtu.be/olY_2MW4Eik

MY FAVOURITE PROGRAMMING BOOKS
Python Programming https://amzn.to/3TxsJx6
Python Programming 2 https://amzn.to/3IVa0GL
HTML/CSS https://amzn.to/3vrKBBs
Javascript and jQuery https://amzn.to/3TWiOmc
Java https://amzn.to/49dcJWN
Programming Interviews https://amzn.to/3TCr218
Programming Interviews 2 https://amzn.to/3VA6Dwp
Programming Interviews 3 https://amzn.to/49iGSUp

⌨️ MY DESK SETUP (I ACTUALLY USE) ⌨️
Keyboard 1 https://amzn.to/43Bizjx
Keyboard 2 https://amzn.to/4cABlLO
Keyboard 3 https://amzn.to/3Vy9aHm
Mouse https://amzn.to/4cwMxJy
Monitor https://amzn.to/3TxxczD

CREATOR SETUP
Camera Canon M50 https://amzn.to/3PDphQ8
Condenser Microphone https://amzn.to/3vvmMJ2
Condenser Audio Interface https://amzn.to/3Vvf1xe
Microphone Arm https://amzn.to/49cHACH
Video Light https://amzn.to/3PEUvGz

GET IN TOUCH:
Website: https://imdad.codes
Instagram: https://www.instagram.com/imdadcodes
TikTok: https://www.tiktok.com/@imdadcodes
Medium: https://medium.com/@imdadcodes

️ LIKE
It takes me a long time to make these videos, please give the video a thumbs up

WATCH NEXT
Programming Advice and Inspiration - https://www.youtube.com/playlist?list=PL1TBkFFBtagq7Z23M-joDArj24xGh4pa3
Python Projects - https://www.youtube.com/playlist?list=PL1TBkFFBtagpgD9zy1F6AzDswMzff99Tn
Learn Python with Exercises - https://www.youtube.com/playlist?list=PL1TBkFFBtagph84hW8-i9qSx27Wm7zrr9
Learn Programming Without Writing Code - https://www.youtube.com/playlist?list=PLC75BA6296374D8D4

SUBSCRIBE:
https://www.youtube.com/@imdadcodes?sub_confirmation=1

ℹ️ ABOUT THIS VIDEO:
In this video, we'll go over how you can get a users playlists with the Spotify API. We'll use a library called Spotipy which makes it so much easier to get everything from songs and artists to albums and playlists from the Spotify API. I'll show you how you can build your own web server that lets a user log in with their Spotify and keeps them logged in.

Python is the world's most popular programming language in 2020. Python is a great programming language that's used by the likes of Google, Facebook, Twitter, Quora and pretty much every big tech company you can name. It's used everywhere, whether it's in competitive programming, coding interviews, areas of data science, machine learning and algorithmic trading. Follow me as I continue to produce Python tutorials that will help you become a rockstar programmer. Subscribe for all tutorials and videos related to web development, full stack engineering, react native and much more.

‍️ WHO AM I:
I'm Imdad, a startup founder and CTO in London, UK. I love making videos about life as a technical cofounder, teaching people to code through cool programming projects and productivity.

I even teach Python tutorials as it is a great programming language that's used by the likes of Google, Facebook, Twitter, Quora and pretty much every big tech company you can name.

#SpotifyAPI #SpotifyAPIAuthorization #SpotifyAPIPython

TIMESTAMPS:
00:00 What we're building
01:36 Deep Dive into the Spotipy API Documentation
08:03 Setting up the Python Project (VSCode) and Virtual Environment
11:14 Installing Dependencies
14:12 Setting up the Flask App
16:34 Explaining the Session
19:19 Getting the Client ID & Secret from the Spotify Developer Dashboard
21:00 Importing Spotipy and Setting Up Authentication
26:26 Adding Login with Spotify (home)
30:15 Refreshing the Token (callback)
33:19 Getting User Playlists from Spotify
38:49 Running the App

Disclaimer: The links above are affiliate links. If you decide to purchase any of these products through my links, I'll receive a small commission at no extra cost to you. This helps support my channel, and I only recommend products that I've personally used and believe in.