Spotify REST API Project With Python
- Description
- Curriculum
- FAQ
- Reviews
What’s Up Everyone!
I have been seeing a lot of users complaining they don’t have a real life project to practice this skills.
So I made this quick 90 minutes project where you can put your python skills to use by creating a connection between two big real life applications.
We will use get the top trending songs with Last FM and then Create a Playlist in spotify and add it to the new playlist.
Now, I know this seems like a lot of lines of code but trust me it’s only like 70 lines out of which most are semantics needed for declaration.
So what will you learn here? Well let me break it down.
-
You’ll Learn how to use REST API with Python
-
How to connect to different applications using REST and Python
-
How to decode and read JSON responses and parse through them
-
How to use Spotify’s REST API
-
How to modify data in your REAL WORLD APPLICATION
And last but not the lease you will end up with a very cool project to show on your resume.
Not only this, but I am working to add more functionalities and making it even more interactive and fun.
This is only the beginning, we can do a lot of stuff with this BUT before that you need to get this going.
Take out 90 minutes from your schedule. Turn off your mobile. Sit and complete this and then go celebrate.
Requirements:
Some basic level of python is necessary. If you are very new, you can check my profile, I have a course specifically geared towards people who have never programmed. You can take this once you learn from there.
But if you have a little knowledge of python and know what a dictionary and list is, you should be good here 🙂
If you have any questions, post it in the discussions and I’ll be glad to help you out 🙂
-
2Create a Skeleton FunctionVideo lesson
We will build out a skeleton for the project. It is very important to have all the functions and classes you're going to use, ready and filled out. It gives us a vision of where we want to go and also more clarity on what we are trying to do.
Once this is complete, our task would be to fill these with their appropriate code.
-
3Understanding SELF in a classVideo lesson
In the last video we created the skeleton of our project with basic functions and a class that we are going to use. A class is a feature available in object oriented programming languages that helps you use your most common variables easily across all the functions.
Sadly, I do not see a lot of teachers who python beginner projects or beginner tutorials explain how classes make it easier and what the 'self' variable in a class does.
Every python beginner should be using classes if his Python beginner project consists of multiple functions. In this Spotify REST API project we use multiple functions to create to Last FM, Connect to Spotify and do various things so it is very useful to use a class and the 'self' variable in the functions.
So, this video is going help you understanding self and to explain why we use a 'self' variable for all the functions in the class and why it makes everything easier.
-
4Setting up Last FMVideo lesson
It's time to connect to Last FM. We will go step by step on how to sign up to Last FM and get your own API key. Once we have the key, we will make our first REST call to 'GET' the top songs from Last FM.
Last FM has a very easy setup for a new account and to get a new API key to make REST Calls. It's completely free and I'll recommend everyone to sign up and try this out since it's very useful to have a real life experience working with REST API in python.
External Links May Contain Affiliate Links read more