Python GET Request to API | Using Python Requests Library [2024]

Python GET Request to API | Using Python Requests Library [2024]

Ethan | The Code Syndicate

54 года назад

91 Просмотров

In this video, you'll learn how to perform GET requests in Python using the requests library. We'll walk you through the process of sending HTTP GET requests, handling JSON responses, and working with data from various APIs.

OpenWeatherMap: https://openweathermap.org/api
Current weather API: https://openweathermap.org/current
Geocoding API: https://openweathermap.org/api/geocoding-api

GitHub: https://github.com/MasterReach1/python-requests-series/blob/main/requests-get.py

Timeline:
00:00 What is a GET request?
00:20 Example API setup
01:50 Create GET request
02:52 Explaining call URL
03:51 Status codes
04:40 Working with JSON formatting
05:33 Setting lat and lon
06:05 Challenge (pause the video here)
06:47 Challenge answer
08:55 Outro (Discord server?!)
Ссылки и html тэги не поддерживаются


Комментарии: