Python requests: HTTP and HTTPS requests, GET and POST methods, connecting to APIs with Python

Published: 26 April 2022
on channel: Python Hub Studio
141,047
4.6k

In this video, we'll learn how to work with the internet using Python and the requests library, how to connect to an API and retrieve website data for applications, and how to understand the intricacies of GET and POST requests to websites and APIs. We'll also learn how to fill out website forms and log in using Python.

00:00 Introduction
00:55 Project Preparation (optional step)
02:06 Installing the requests library
02:56 Get Request requests
03:40 Request status - status_code
05:51 Website response result - page text
07:04 Get request parameters, website search query
11:31 Connecting the weather website API
17:47 Simple request status check
19:08 JSON response from the weather API
22:43 Headers - Request response headers
24:07 Training website in JSON format jsonplaceholder.typicode.com
24:57 Website for testing requests httpbin.org
25:28 Headers - Changing request headers
30:40 POST requests
31:48 How to fill out a website form with a POST request
42:17 The realities of POST authorization
45:08 Session and cookies

🎓 My courses on Udemy with a discount + 🧾 certificate of completion:
❤️ Python https://tukas.dev/python-full-course/
💛 Docker https://tukas.dev/docker-full-course/
💚 WSL (free) https://tukas.dev/wsl-setup-course/

🧩 Answers to questions about courses ⬆️:
🔹 You can take the course at any time and at your own pace (there is no time limit).
🔹 Lifetime access to the course and all future updates and additions.
🔹 Select "One-time purchase" instead of "Subscription" to get the best deal on the selected course permanently at the lowest price using the promo code embedded in the links above.
🔹 You can get a certificate of completion for the full course on Udemy (except for the free WSL course).
🔹 YES, my support team is there👍 if you have any questions during the course!

💡All my courses on YouTube:
🔷🔥New Python course on YouTube [12 hours]:
   • Курс Python с Абсолютного нуля! [12 часов ...  
🔷 HTML & CSS (7 hours):
   • Учим HTML и CSS за 7 часов! Уроки по созда...  
🔷 Python (7 hours):
   • Экспресс курс по python за 7 часов!  
🔷 Python Roadmap, what to learn:
   • Что реально пишут на python, что учить и к...  
🔷 Docker & Docker Compose
🔹 YouTube course (4 hours):
   • Docker и Docker Compose - Полный Курс Dock...  
🔷 Django (18 hours) Hours):
   • Полный курс уроков по Django python  
🔷 Telegram bot in Python (aiogram):
   • Telegram бот на python. Курс по разработке...  
🔷 Website parsing in Python:
   • Курс Парсинга на Python  
🔷 Express tutorial on Python OOP (music in the first video only):
   • Полный курс уроков обучения ООП Python  
🔷 And other videos on the channel!


On this page of the site you can watch the video online Python requests: HTTP and HTTPS requests, GET and POST methods, connecting to APIs with Python with a duration of hours minute second in good quality, which was uploaded by the user Python Hub Studio 26 April 2022, share the link with friends and acquaintances, this video has already been watched 141,047 times on youtube and it was liked by 4.6 thousand viewers. Enjoy your viewing!