Request API data using Python in 8 minutes! ↩️

  Рет қаралды 11,607

Bro Code

Bro Code

Күн бұрын

Пікірлер: 25
@BroCodez
@BroCodez 2 ай бұрын
# pokeapi.co/ #How to connect to an API using Python import requests base_url = "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"]}")
@sohailali3274
@sohailali3274 2 ай бұрын
THIS IS EXACTLY WHAT I NEEDED, THANK YOU SO MUCH MAN
@andredubbs4854
@andredubbs4854 2 ай бұрын
the king is back! im glad youre making content again man you have no idea how useful and helpful it is! i get that it takes a huge chunk of time and ur not even profiting from it, but its much appreciated
@GigelBosket
@GigelBosket 2 ай бұрын
Bro , you have the best programming tutorials!
@materwelone6026
@materwelone6026 2 ай бұрын
i love bro code
@szybkafoka69
@szybkafoka69 2 ай бұрын
Nice tutorial, I'm waiting for PyGame
@israelrios1916
@israelrios1916 9 күн бұрын
You have an extra slash (/) on the base_url, the output is going to have a double slash. It still works good anyways. Thank you 😄
@HassanFakhry-x5x
@HassanFakhry-x5x 2 ай бұрын
I keep atleast one video at a time of yours on in the background at all times just to boost the algorithm
@jmac2050
@jmac2050 11 күн бұрын
height: 0.4m(1'04") , weight: 6.o kg (13.2 lbs) pika pkia
@johnneisler6552
@johnneisler6552 2 ай бұрын
Love your channel
@andrewanderson9261
@andrewanderson9261 16 күн бұрын
Could you please show how to pull the entire list of Pokemon and generate a csv or excel table with specific attributes?
@digital_down
@digital_down 6 күн бұрын
… Do a video on creating an API. That would be interesting
@Fireman9143
@Fireman9143 2 ай бұрын
I don't know pokemon. I know when it comes to BroCode videos, gotta catch em all!
@ranataha8500
@ranataha8500 2 ай бұрын
Brother, I really want to know, with all these skills, at what stage are you in your career? Are you working a job? Do you have your own software house? Or are you in a big tech company? Please tell me so I can get the motivation to learn.
@SumitRanjanBahalia
@SumitRanjanBahalia 2 ай бұрын
I'm your big fan sir, can u please start the mern stack development
@ahmedashraf4371
@ahmedashraf4371 2 ай бұрын
hmm , i think Mewtwo is my favourite pokemon
@kedarppopuri2776
@kedarppopuri2776 2 ай бұрын
Bro please me pandas tutorial too
@kapibara2440
@kapibara2440 Ай бұрын
Greetings from Poland Bro 🎉🎉🎉
@user-oe1oh3bj3p
@user-oe1oh3bj3p 2 ай бұрын
Mr.Bro is every api's arcitecture different ?
@mohsenmk2537
@mohsenmk2537 2 ай бұрын
Please teach us api in JavaScript
@BishanTamang-hl3pn
@BishanTamang-hl3pn 2 ай бұрын
Hello Brother make java with Data Structure and Algorithms course
@zakariaabdulrauf
@zakariaabdulrauf 24 күн бұрын
Help mine shows errors
@Bobble2520
@Bobble2520 Ай бұрын
This is the only bro code vid that failed me :(
@unknownk1992
@unknownk1992 2 ай бұрын
Day 1 : Asking to walkthrough Rust language
@user-yackoob
@user-yackoob 2 ай бұрын
tutorial for django....
Learn Python MULTITHREADING in 8 minutes! 🧵
8:43
Bro Code
Рет қаралды 6 М.
C# Inheritance with New, Virtual and override
8:31
ASHAM Tutorials
Рет қаралды 9 М.
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 7 МЛН
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 5 МЛН
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 1,1 МЛН
Advanced Exception Handling in Python
12:06
NeuralNine
Рет қаралды 62 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 532 М.
This is Why Programming Is Hard For you
10:48
The Coding Sloth
Рет қаралды 865 М.
I built 10 web apps... with 10 different languages
14:23
Fireship
Рет қаралды 1,6 МЛН
Website Bruteforcer using Python Requests [Ethical Hacking]
15:19
Just Another Coder
Рет қаралды 74 М.
WRITE FILES using Python!  (.txt, .json, .csv) ✍
13:47
Bro Code
Рет қаралды 4,3 М.
Learn To Code Like a GENIUS and Not Waste Time
9:41
The Coding Sloth
Рет қаралды 1,6 МЛН
Let's code a beginner's Python BANK PROGRAM 💰
15:01
Bro Code
Рет қаралды 166 М.
SUPER() in Python explained! 🔴
13:06
Bro Code
Рет қаралды 8 М.
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 7 МЛН