Make a GET request with Python

Опубликовано: 12 Сентябрь 2022
на канале: Make That Work
316
14

**Anything on Python you're not sure on? Something you've always wanted to do but you haven't managed to yet? I want to help! Don't forget to leave comment below with your content requests!**

APIs are super useful. Being able to work with them is a key part of any Python coder's toolbox.

Here we use Python to perform a simple get request on a publicly available API (SpaceX). We use the requests module which comes with Python out-of-the-box.

The Get request returns a JSON-formatted response containing the relevant data from that endpoint. We can then use that data for whatever we desire!

Python requests module: https://pypi.org/project/requests/
SpaceX API: https://github.com/r-spacex/SpaceX-API


На этой странице сайта вы можете посмотреть видео онлайн Make a GET request with Python длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Make That Work 12 Сентябрь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 316 раз и оно понравилось 14 зрителям. Приятного просмотра!