learning-python (23 Part Series)
The following are notes and details recapping a past live stream where we live code together. The idea behind these streams is that they provide real-world examples of running into problems and solving them or working towards solving them live. Enjoy this latest one on Python 🙂👍
✅ Warm up/Catch up with chat
✅ Learn how to interact with API's using Python
✅ Closing and raid @Adam13531
- Learned how to interact with API's in Python
- Built a program that gets dad jokes from a web API
- Learned what API's are and mean?
- Learned about HTTP verbs
- Learned how to interact with the shibe (type of dog) web API
- What is an IP address?
- Query parameters vs url parameters vs body parameters. what's the difference? (via @vgkennedy)
- What are body parameters?
- New word "requestions" (just kidding)
- Learn about package/library management in Python
- Our Code Repository
- Nina Zakharenko's course we're following: Learn Python
- Python Cheat Sheet
- Microsoft Developer's Python for Beginners
- How much we can rely on internet connectivity nowadays
Clips are a feature on Twitch that let you cut and capture segments of the live stream in the moment (up to 60 seconds). See how to use clips on Twitch for more details. The following are some fun moments captured from this stream:
- What is an "API" ?
- How interacting with API's work
- What is an IP address?
- Inferring a libraries API based on general development knowledge and experience
- LiveCoders Dance Mix
- A Python program that gets dad jokes from an API and prints them to the output
Links not working on Twitch? It's most likely because Twitch will only save my stream recordings for about 60 days. Use the YouTube link at the top of this page instead.
This table helps point out different segments of the stream (highlighted in bold) or moments we learned something (not bold). The timestamps link to the video on Twitch at that point in the recording. If you'd like the YouTube link above will have similar timestamps and link to those same points in the recording as well.
|00:12:31||Kick it off|
|00:23:47||Thanks for coming to our ted talk about ISP monopolies robert68Ted (created by @roberttables)|
|00:34:28||Showed how to clone the repo and get vs code set up with the project (created by @roberttables)|
|00:40:37||What does "API" mean?|
|00:46:55||What is an IP address?|
|01:02:34||Cats on the internet (created by @roberttables)|
|01:02:41||End browsing http.cat for status codes :)|
|01:04:41||What is the "requests" library?|
|01:08:07||Making http requests to the shibe.online API to get pictures of dogs|
|01:13:47||Dealing with errors in HTTP requests|
|01:21:10||Query parameters vs url parameters vs body parameters. What's the difference? (via @vgkennedy)|
|01:23:46||New greeting new viewers from csharpfritz raid (created by @roberttables)|
|01:30:11||What are body parameters?|
|01:33:55||Thanks for coming to Cecil's Ted Talk about using proper HTTP verbs robert68Ted (created by @roberttables)|
|01:49:51||New word "requestions"|
|02:16:08||Recap and close out the stream|
Thanks for reading this article. If you're interested in finding more content from Microsoft Cloud Advocates check out this monthly curated newsletter: Developer Community Newsletter