Request API data using Python in 8 minutes! ↩️

  Рет қаралды 40,315

Bro Code

Bro Code

Күн бұрын

Пікірлер: 54
@BroCodez
@BroCodez 5 ай бұрын
# 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"]}")
@acexpanda09
@acexpanda09 2 ай бұрын
Do request. Status_code is in built? Only the status_code
@yourkidelias
@yourkidelias 2 ай бұрын
Yo, I've finished what I needed from your Python 2024 course and I want to say that ur way of explaining these concepts was much better than any other course I could find, and much more quicker! Thank you very much ^^.
@APL33025
@APL33025 19 күн бұрын
This was an excellent example of displaying API data, thank you
@sohailali3274
@sohailali3274 5 ай бұрын
THIS IS EXACTLY WHAT I NEEDED, THANK YOU SO MUCH MAN
@andredubbs4854
@andredubbs4854 5 ай бұрын
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 5 ай бұрын
Bro , you have the best programming tutorials!
@freelance-writer
@freelance-writer 3 ай бұрын
6:49 You've got nested double quotes in the print function, which throws me an error. So it's better to use single quotes inside double quotes.
@szybkafoka69
@szybkafoka69 5 ай бұрын
Nice tutorial, I'm waiting for PyGame
@sleepingforest2047
@sleepingforest2047 Ай бұрын
wonderful, simple to explain and easy to understand.
@oliya_b
@oliya_b Ай бұрын
Thank you a lot! That's exactly what i needed! Thank you a looooot!!!!! 😊😊
@courtneycurtis
@courtneycurtis 3 ай бұрын
Really fun tutorial, thank you!
@HassanFakhry-x5x
@HassanFakhry-x5x 5 ай бұрын
I keep atleast one video at a time of yours on in the background at all times just to boost the algorithm
@materwelone6026
@materwelone6026 5 ай бұрын
i love bro code
@winxmondsecure
@winxmondsecure 2 ай бұрын
kiss bro code challenges
@wombozombo
@wombozombo 2 ай бұрын
This helped a lot, thanks!
@ranataha8500
@ranataha8500 5 ай бұрын
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.
@israelrios1916
@israelrios1916 3 ай бұрын
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 😄
@cross_guy
@cross_guy 14 күн бұрын
so helpful, thanks.
@talhaalmamun6073
@talhaalmamun6073 24 күн бұрын
Bro, you are the boss
@johnneisler6552
@johnneisler6552 5 ай бұрын
Love your channel
@seanmorley2601
@seanmorley2601 3 ай бұрын
Love it! Any similar videos for oauth2 authentication before we can use api?
@notofthematrix
@notofthematrix 10 күн бұрын
very helpful at first I got the 404 error and you didn't explain how to fix it the I realized I made a small yet crucial mistake to no put a / somewhere in the code. Thanks
@Bezxywny
@Bezxywny 2 ай бұрын
Name: Charizard ID: 6 Height: 17 Weight: 905 someone in the comments below explaind units of pikachu "height: 0.4m(1'04") , weight: 6.o kg (13.2 lbs) " so it looks that Charizard is 1.7m tall and weights around 90kg btw pikachu could weight 60kg, I remember that Ash was carrying him on his back xD Bro, thank you for your work :)
@SanjaySankar-b1t
@SanjaySankar-b1t 5 ай бұрын
Mr.Bro is every api's arcitecture different ?
@jmac2050
@jmac2050 4 ай бұрын
height: 0.4m(1'04") , weight: 6.o kg (13.2 lbs) pika pkia
@kapibara2440
@kapibara2440 5 ай бұрын
Greetings from Poland Bro 🎉🎉🎉
@Mr152478000
@Mr152478000 2 ай бұрын
APIkachu, thanks Bro !!!
@أملاكعبدالله-س3ع
@أملاكعبدالله-س3ع 18 күн бұрын
I want call all data and save in files , without pass parameters how can do that? The api is soap
@kashifrana6798
@kashifrana6798 Ай бұрын
How to handle authentication for rest API and using session?
@Fireman9143
@Fireman9143 5 ай бұрын
I don't know pokemon. I know when it comes to BroCode videos, gotta catch em all!
@SumitRanjanBahalia
@SumitRanjanBahalia 5 ай бұрын
I'm your big fan sir, can u please start the mern stack development
@EthanWinters176
@EthanWinters176 Ай бұрын
"I will pick my favorite pokemon of Typhlosion"💀
@dhiyanabdurazack5257
@dhiyanabdurazack5257 Ай бұрын
NICE
@digital_down
@digital_down 3 ай бұрын
… Do a video on creating an API. That would be interesting
@ahmedashraf4371
@ahmedashraf4371 5 ай бұрын
hmm , i think Mewtwo is my favourite pokemon
@mohsenmk2537
@mohsenmk2537 5 ай бұрын
Please teach us api in JavaScript
@joebucket1471
@joebucket1471 23 күн бұрын
Is this pycharm ?
@kedarppopuri2776
@kedarppopuri2776 5 ай бұрын
Bro please me pandas tutorial too
@BishanTamang-hl3pn
@BishanTamang-hl3pn 5 ай бұрын
Hello Brother make java with Data Structure and Algorithms course
@zakariaabdulrauf
@zakariaabdulrauf 4 ай бұрын
Help mine shows errors
@MusaddikulIslam-r7i
@MusaddikulIslam-r7i 11 күн бұрын
Me!: gardeviour My bro: arcious
@unknownk1992
@unknownk1992 5 ай бұрын
Day 1 : Asking to walkthrough Rust language
@Bobble2520
@Bobble2520 4 ай бұрын
This is the only bro code vid that failed me :(
@patrickwheeler7107
@patrickwheeler7107 Ай бұрын
Jiggly Puff errrrr jigglypuff
@darthnihilus777
@darthnihilus777 3 ай бұрын
Yes Pikachu's height is probably 4 inches
@andrewanderson9261
@andrewanderson9261 4 ай бұрын
Could you please show how to pull the entire list of Pokemon and generate a csv or excel table with specific attributes?
@irvinrodriguez931
@irvinrodriguez931 2 ай бұрын
not sure if you have gotten your answer to this yet, but look into using pandas, once you have your dictionary from this pokemon api you can use pandas to write into your csv or excel file
@okman4300
@okman4300 3 ай бұрын
thank you so much
@user-yackoob
@user-yackoob 5 ай бұрын
tutorial for django....
@Hasnain-mahdi
@Hasnain-mahdi 16 күн бұрын
Bro do you even code
@Po7322-6
@Po7322-6 2 ай бұрын
@LethalAscend
@LethalAscend Ай бұрын
lotad
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 424 М.
REST API Crash Course - Introduction + Full Python API Tutorial
51:57
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
How to FETCH data from an API using JavaScript ↩️
14:17
Bro Code
Рет қаралды 175 М.
Learn Python MULTITHREADING in 8 minutes! 🧵
8:43
Bro Code
Рет қаралды 16 М.
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 78 М.
Working With APIs in Python - Pagination and Data Extraction
22:36
John Watson Rooney
Рет қаралды 113 М.
Learn Python OOP in under 20 Minutes
18:32
Indently
Рет қаралды 163 М.
Create A Python API in 12 Minutes
12:05
Tech With Tim
Рет қаралды 724 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,3 МЛН
How to use a Public API | Using a Public API with Python
14:01
Alex The Analyst
Рет қаралды 51 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН