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

preview_player
Показать описание
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!

Рекомендации по теме
Комментарии
Автор

Holyshit, can't believe I'm getting these for free.

ai.
Автор

I just wanted to say after learning python from several sources from past 6 months I have not come across anyone who thinks as clearly and as fast as you... I want to be like you by 2024. Fingures crossed. Thanks a lot.

guptaanalytics
Автор

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

failureffect
Автор

Don't mind me. I'm using these timestamps for self reference :)
03:23 - Auth
19:51 - Base API Client Class
32:07 - Using the Access Token
42:19 - A Resource-Enabled Client
58:41 - Improving the Search Query

JeyadarshiniRaja
Автор

Your tutorials are awesome! I wanted a practical video about HTTP requests in Python and thanks to this video now I have it. Keep up the great work!

omarawad
Автор

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

kagoTshabota
Автор

Great tutorial about API authentication and creating a reusable Class for interacting with the API!
This helped me a lot, thank you so much for this Justin.

P.S. If you like Hans Zimmer, you may also like the Ozark soundtrack and The Rental soundtrack.
I love being in a nice productive (programming) flow with these albums playing on my headphones.

silkogelman
Автор

the greatest teacher i have ever seen. I have leaned lots of core concept about python and django..thank you so much for forever. i can do only that to say thank.. i don't know why some people don't like this channel

ygcjayalal
Автор

Thanks mate, you just saved my diploma thesis.

tonyaxis
Автор

This man is the developer Safdie bro! Great tutorial! Thank you!

DeadlyPlants
Автор

Dude, amazin class. It really helped with a personal study project! Thanks!

lalianza
Автор

Super comprehensive tutorial on both API in general and Spotify API 👍

hangchen
Автор

Hey thank you very much for this tutorial, it encourages me to make my own API clients!
Very well explained, even knowing just a little bit of python enables you to follow it.

Автор

Hey man this is amazing not even through the whole video yet, excellent work :-) thank you

RubenIMT
Автор

This is amazing😍 Thank you so much, you've made it so easy and interesting!

lisagilyarovskaya
Автор

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 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!

gaylonalfano
Автор

thanks for posting this! question @19:25. you had posted that the status code should be in range(200, 299). is the range object here inclusive of 299? should it be range(200, 300)? whenever I do a loop using range(200, 299), it stops at 298.

MichaelJamesActually
Автор

UPDATE (2021): You'll actually need to pass the "Content-Type" header too even if you're using 'requests' library

LeX-fr-
Автор

hey, even i m working with spotify api analyzing its data your tutorial will help me thankyou!!

pranatis
Автор

This is awesome one, i have to learn python at all cost

dihfahsih