30 Days of Python – Day 19 – The Spotify API – Python TUTORIAL

///30 Days of Python – Day 19 – The Spotify API – Python TUTORIAL

30 Days of Python – Day 19 – The Spotify API – Python TUTORIAL

FavoriteLoadingAdd to favorites

Day 19 – The Spotify API

In 30 Days of Python, I’ll teach you the fundamentals of Python. We created this series as an introduction to programming with Python.

Why Python? It’s a very popular way to writing computer programs and automations with board applications: SpaceX & NASA use it to launch rockets, Tesla with autonomous driving, Instagram as a web app backend, Intel to pilot drones/UAVs, and many many others.

What you can do with Python is nearly endless:

Run powerful web applications
Fly drones and launch rockets
Run autonomous robots like drones and self-driving cars
Build connected systems with Arduino and Raspberry PI
Automate business intelligences and perform financial analysis
Machine learning including deep learning
And many more ways
That list is fancy but don’t let it scare you. Python is just a tool for writing a series of step-by-step automation rules and that’s exactly what software is: a collection of rules for a computer to follow.

The right tools in the right hands can impact the world in such amazing ways.

Shakespeare had very few tools for writing plays and yet he continues to influence our entertainment despite being long gone. Creativity mixed with the right tools can transform how we do everything or why we do it.

That’s why I want to teach you this tool. The world needs your creatively, your perspective, your project.

Let’s do this!

Python on Windows Install GUIDE:

Python on macOS Install GUIDE:

Code:
Subscribe:

source

By |2020-09-21T09:36:47+00:00September 21st, 2020|Python Video Tutorials|20 Comments

20 Comments

  1. Jeremy Hand September 21, 2020 at 9:36 am - Reply
  2. nikro September 21, 2020 at 9:36 am - Reply

    Oh man, Ashton Kutcher is now doing Python tutorials ^^

  3. failureffect September 21, 2020 at 9:36 am - Reply

    When I first started the 30 Days playlist, I skipped ahead to browse this video and never thought I'd understand any of it. Can't believe how far I've come! You're an awesome teacher man, and the work and preparation you put into these videos really shows. Thank you

  4. Derek Leckner September 21, 2020 at 9:36 am - Reply

    Thanks for this video, currently trying to develop a Spotify API for my friend. However, I'm relatively new to developing and before this video, my knowledge of how to make APIs was incredibly narrow. There seems to be a lot of technical knowledge to learn for not only a Spotify API, but others as well. How do you recommend going about doing this to fully understand the mechanisms required for tier 1 sites?

  5. Gaylon Alfano September 21, 2020 at 9:36 am - Reply

    This was one of the best/most knowledge-packed lessons of the series! Really cool to see you piece this together! A couple of questions for you:

    Could we have created a BaseAPIClient class for the minimum parts (e.g., client authorization, etc.) and then create a SpotifyAPIClient(BaseAPIClient) that inherits from this BaseAPIClient for more generalized use? This way a BaseAPIClient could be used/inherited inside multiple other API Clients? I'm still grasping with OOP and how to use class inheritance. Kinda like you refactored some larger methods into smaller convenience methods.

    Also, we exported to a final spotify_client.py file at the end, but do you typically modularize/split up something like an API Client across multiple Python files? Or do you typically have it all in one Python file? Just curious how those files may be called if going for a more modular/file approach. I guess the more examples I work through and see I'll start to get it but just curious. Regardless, much appreciation for your efforts!

  6. English Rain September 21, 2020 at 9:36 am - Reply

    Thank you so much for the wonderful series.

  7. T O September 21, 2020 at 9:36 am - Reply

    The SpotifyAPI class object does not work in PyCharm, I have entered it verbatim. 'client.perform_auth()' does not return anything, nor does client.access_token

  8. Alejandra Gutierrez September 21, 2020 at 9:36 am - Reply

    Thanks for a great tutorial! What do I need to add (and where) in order to get the Audio features of the songs?

  9. Manuel Seromenho September 21, 2020 at 9:36 am - Reply

    Thanks for the tutorial! Maybe Im going to be a bit picky xD hahahah, but the one line comment at 24:46 , shouldn't be according to PEP 257? https://www.python.org/dev/peps/pep-0257/#one-line-docstrings

  10. Yuri Uehara September 21, 2020 at 9:36 am - Reply

    51:17 Not sure if it's a dumb question but, why did you use _id instead of just id?

  11. Andrea Arce September 21, 2020 at 9:36 am - Reply

    Could you show a way to get a playlist items, using a path parameter? I am struggling to find content in this. Really love the explanations! keep it coming 🙂

  12. Kartik Ramesh September 21, 2020 at 9:36 am - Reply

    Great tutorial!

  13. Χρήστος Παππάς September 21, 2020 at 9:36 am - Reply

    Great tutorial.
    Question: Is there available composer or author of specific track?

  14. poorvik dharmendra September 21, 2020 at 9:36 am - Reply

    I am finding it difficult to get access token with scopes. Can you help, please? I found that your video was the most informative one out there.

  15. mansi arora September 21, 2020 at 9:36 am - Reply

    Thankyou so much for these videos!

  16. Kevin Woodfield September 21, 2020 at 9:36 am - Reply

    A shebang is “#!”

  17. vasavi edukulla September 21, 2020 at 9:36 am - Reply

    Thank you soo much for an amazing video.
    I have a doubt, whenever i am trying to pull data for an artist , there is a limit of 20 tracks only. Is there any way to bypass the limitation and pull the entire songs list of an artist? I am trying to do some analysis for my project work so will need a huge dataset. Please can you help with it.
    Thanks in advance!!

  18. ProgrammerError September 21, 2020 at 9:36 am - Reply

    How do you make your cursor zoom in a particular portion of your screen? Thanks!

  19. Shohei Kato September 21, 2020 at 9:36 am - Reply

    Hey question. Whenever I run the Base API function, I get "TypeError: 'method' object is not subscriptable. and when I change the bracket under access_token = data['access_token'] to access_token = data('access_token'), I get only 1 variable is accepted. How can I resolve this? Thanks in advance!

Leave A Comment

*