Toggle navigation
Video
♫ Thôn Quê
♫ Sông Đáy
♫ Liên Khúc
♫ Nhạc Đám Cưới
♫ Nonstop Việt
♫ Không Lời
♫ Nhạc Vàng Trữ Tình
♫ Nhạc Trẻ
Request API data using Python in 8 minutes! ↩️
Bro Code
88.019 Lượt nghe
Prev
play
stop
Next
mute
max volume
00:00
00:00
repeat
Update Required
To play the media you will need to either update your browser to a recent version or update your
Flash plugin
.
Tải MP3
MÔ TẢ MP3
TIẾP THEO
Request API data using Python in 8 minutes! ↩️
#python #pythonprogramming #pythontutorial https://pokeapi.co/
00:00:00
Pokeapi intro
00:00:40
import requests
00:01:09
pip install requests
00:01:44
url
00:03:17
response.get(url)
00:03:35
response.status_code
00:06:22
display API data # How to connect to an API using Python import requests base_url = "https://pokeapi.co/api/v2/" def get_pokemon_info(name): url = f"{base_url}/pokemon/{name}" response = requests.get(url) if response.status_code == 200: pokemon_data = response.json() return pokemon_data else: print(f"Failed to retrieve data {response.status_code}") pokemon_name = "pikachu" pokemon_info = get_pokemon_info(pokemon_name) if pokemon_info: print(f"Name: {pokemon_info["name"].capitalize()}") print(f"Id: {pokemon_info["id"]}") print(f"Height: {pokemon_info["height"]}") print(f"Weight: {pokemon_info["weight"]}")
Những bài liên quan
51:57
REST API Crash Course - Introduction + Full Python API Tutorial
1.1 Tr
Caleb Curry
12:00:00
Python Full Course for free 🐍
20.7 Tr
Bro Code
9:09
Python PyQt5 setup a basic GUI Application! 🖥️
38.4 N
Bro Code
14:01
How to use a Public API | Using a Public API with Python
59.6 N
Alex The Analyst
13:36
Python MAGIC METHODS are easy! 🌟
21.1 N
Bro Code
13:47
WRITE FILES using Python! (.txt, .json, .csv) ✍
22.7 N
Bro Code
22:36
Working With APIs in Python - Pagination and Data Extraction
124.4 N
John Watson Rooney
12:18
Learn Python Object Oriented Programming! 🚗
49.5 N
Bro Code
27:02
Python Tutorial: UV - A Faster, All-in-One Package Manager to Replace Pip and Venv
78.4 N
Corey Schafer
10:38
Functions in Python are easy 📞
778.1 N
Bro Code
25:10
Please Master This MAGIC Python Feature... 🪄
373.8 N
Tech With Tim
16:25
Let's code a DIGITAL CLOCK in Python! 🕒
14.1 N
Bro Code
12:00
Learn JSON in 10 Minutes
3.4 Tr
Web Dev Simplified
17:35
5 Good Python Habits
832.3 N
Indently
44:41
Build a REST API in Python | API Crash Course
9.4 N
Code with Josh
7:01:40
Build a Django REST API with the Django Rest Framework. Complete Tutorial.
717.8 N
CodingEntrepreneurs
3:07:07
APIs for Beginners - How to use an API (Full Course / Tutorial)
3.4 Tr
freeCodeCamp.org
11:08:59
The complete guide to Python
565.5 N
Clear Code
14:17
How to FETCH data from an API using JavaScript ↩️
233.6 N
Bro Code
22:30
5 Python Libraries You Should Know in 2025!
104.1 N
Keith Galli
Nhạc Theo Chủ Đề
Nhạc Không Lời
Nhạc Vàng HOT
Nhạc Liên Khúc
Nhạc DJ HOT
Nhạc Hà Nam
Nhạc Vĩnh Yên
Nhạc Hưng Yên
Nhạc Hải Dương
Nhạc Hà Tây
Nhạc Sông Đáy
LK Nhạc Vàng
LK Nhạc Trẻ
Liên kết website