How to Build a Weather App with Python | Weather API

  Рет қаралды 57,719

Arpan Neupane

Arpan Neupane

2 жыл бұрын

Hey guys, welcome back! In this video, I will be walking you through how to develop a weather app using the Python programming language. We'll use the OpenWeatherMap API to retrieve weather data and use the requests library in Python to fetch the weather API.
Code in this video: github.com/arpanneupane19/Pyt...
If you don't know about Python, Python is a high-level programming language that is used to create computer applications. It is an interpreted language, meaning that it can be executed by the interpreter without having to go through a compilation process. Python can be used in many different fields including web development, data science, and artificial intelligence.
If you don't know about APIs, I'd recommend checking these videos out:
API Fetching with React - • How to Fetch APIs With...
API Fetching with Python - • How to Fetch APIs with...
My GitHub: github.com/arpanneupane19
My Website: arpanneupane.com
Background Music: • LAKEY INSPIRED - Warm ...
My Programming Gear :
Keyboard: amzn.to/42vXkxh
Laptop: amzn.to/3CkAP3W
Laptop Stand: amzn.to/3X116Oi
Desk: amzn.to/43wmIEt
Monitor: amzn.to/42BAaFH
Monitor Arm: amzn.to/3NR0APS
Chair: amzn.to/42vvKAn
Desk Mat/Mousepad: amzn.to/43AhKqj
Microphone: amzn.to/45RuQ43
Headphones: amzn.to/445sf4R
#Programming // #WeatherApp // #LearnToCode

Пікірлер: 62
@user-iq8id7sp7e
@user-iq8id7sp7e Жыл бұрын
Thank you for clear introduction to the weather app in python. I'll try myself to develop the fundamentals I got from this video
@Native_love
@Native_love Жыл бұрын
Thank you! This worked! The other KZbin videos by others had too many errors in them. Thank you!!!
@newbie6449
@newbie6449 6 ай бұрын
simple short and to the point info. Thanks man
@sudeep812
@sudeep812 2 жыл бұрын
Clean code and a very nicely explained.keep it up Arpan.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thank you !!
@GopiNath-uk8ib
@GopiNath-uk8ib 10 ай бұрын
Simple and Sweet 😊 Thank You 😊
@miltonneto2985
@miltonneto2985 Жыл бұрын
Thanks, your video helped me understand how to round numbers to decimals
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
👍
@fouadmaizar2914
@fouadmaizar2914 2 жыл бұрын
Thanks man for the explanation.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
You're welcome!
@sixer-me6jz
@sixer-me6jz Жыл бұрын
It very helpful in my development of my discord bot thanks bro!
@craigslistbuslistingsofnor6494
@craigslistbuslistingsofnor6494 5 ай бұрын
Excellent video!
@NNNedlog
@NNNedlog 2 жыл бұрын
This is very nice. Thanks for sharing
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Thank you! Cheers!
@amossymindset
@amossymindset Жыл бұрын
Thank you. Awesome!
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Glad I could help!
@saadalsaidy3712
@saadalsaidy3712 Ай бұрын
that was great thank you very much
@rishabhgulecha4272
@rishabhgulecha4272 Жыл бұрын
How do I change 10 digit time format to hour time such as sunrise or sunset? Thank you
@iss_wane
@iss_wane Жыл бұрын
Nice! I'm a student In Kenya, this was very informative. I was wondering if there is a way we can merge this with Kotlin so that this data is displayed using beautiful, responsive UI on an android device... If you could do that on another video I'd really appreciate. Otherwise, thank you!
@AHDD142
@AHDD142 Жыл бұрын
Thanks man. Do you know why it does not work this way please?: if weather_data.json()['cod'] != '200' like why it does work for 404 but not 200?
@jabarhenv5933
@jabarhenv5933 10 ай бұрын
I had to copy the http part straight from your github but why is it when I tried to copy and paste it from the weather app did it not give me the same url?
@sudeep812
@sudeep812 2 жыл бұрын
Very good !!!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thanks!
@ausbirdy
@ausbirdy 2 жыл бұрын
You are awesome!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Appreciate it!
@aWxffl3
@aWxffl3 Ай бұрын
The console says my api key is invalid when i print out the data.json
@user-di7os1fp4g
@user-di7os1fp4g 2 ай бұрын
Please could you give me the name of the software you used to write the code and how it was possible for it to show in the browser.
@tw9756
@tw9756 Жыл бұрын
Confused about weather = weather_data.json()['weather'][0]['main'] Why do we have to access this using a 0 index but everything else you can just call like how temp is done?
@ArpanNeupaneProductions
@ArpanNeupaneProductions Жыл бұрын
Because you have to access the first index of the returned data in order to access the weather itself. You can see that in the data that is returned from the API if you send a GET request to that endpoint.
@emreboy0337
@emreboy0337 7 ай бұрын
Could you please make a video in which you run this code in tkinter?? (or are you already have that?) I need that soo muchhh pleasee
@quickenigma
@quickenigma Жыл бұрын
Nice video😁😁 One question when I put Celsius de result still in farenheit, how can I change it?
@fitze5899
@fitze5899 Жыл бұрын
you can use the Farenheit to Celcius formula and then use that to change the value for the temperature before you print it out.
@yuryaraujo8325
@yuryaraujo8325 Жыл бұрын
You can change line 14 to this: temp = round((weather_data.json()['main']['temp'] - 32) * (5 / 9))
@towkukus
@towkukus 10 ай бұрын
Line 8 of authors code is the URL to openweather. Replace units=imperial with units=metric
@olasojiemmanuel9132
@olasojiemmanuel9132 Жыл бұрын
Please how did you get the url for the weather_data?
@EpicfinchAnimations
@EpicfinchAnimations Жыл бұрын
thinking about the same thing
@user-ue1no6ln7e
@user-ue1no6ln7e 11 ай бұрын
I am getting error code 401 Unauthorized, but I verified my e-mail. What do you think?
@jamess.9930
@jamess.9930 8 ай бұрын
Same issue here, maybe we have to wait.
@lokesh5664
@lokesh5664 5 ай бұрын
I am also getting error code 401 how to resolve it
@keswickbramwell4890
@keswickbramwell4890 2 жыл бұрын
How do you get the URL that you insert?
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
I copied and pasted it. You can go to the openweathermap.org to learn more about the API.
@Egsslereal
@Egsslereal 9 ай бұрын
PLEASE SAY HOW TO TRANSLATE WEATHER AND TEMP
@tala_aa2993
@tala_aa2993 Жыл бұрын
where is the url?
@samridhsharma5659
@samridhsharma5659 4 ай бұрын
how to turn it into GUI
@lakshmipriya925
@lakshmipriya925 2 жыл бұрын
Is is possible to run this code in IDLE PYTHON?
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Yes
@lakshmipriya925
@lakshmipriya925 2 жыл бұрын
Thanks a lot ... Can u pls provide your insta I'd ?? Pls i got some error ...
@lakshmipriya925
@lakshmipriya925 2 жыл бұрын
I got atleast output properly only by this video ... I had watched a no.of videos but no video helped me like these ... Thank you so much
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
@@lakshmipriya925 @imarpanneupane
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
@@lakshmipriya925 Appreciate it!
@jaychou8430
@jaychou8430 Жыл бұрын
Where I can find my URL?
@jorglopez4744
@jorglopez4744 28 күн бұрын
How
@anujdhanke
@anujdhanke 2 ай бұрын
It shows KeyError : 'weather'
@tmusic1001
@tmusic1001 Жыл бұрын
I got 401. what to do
@lorddagf7978
@lorddagf7978 Жыл бұрын
I don't know if you were able to figure it out but for me I had to wait about 10 minutes for api key to be enabled.
@tmusic1001
@tmusic1001 Жыл бұрын
@@lorddagf7978 I did it thanks👌
@jorglopez4744
@jorglopez4744 27 күн бұрын
How to solve this 401?
@priy3865
@priy3865 5 ай бұрын
Thankyou so much it was very useful for me..✨🫰
Backstage 🤫 tutorial #elsarca #tiktok
00:13
Elsa Arca
Рет қаралды 38 МЛН
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 106 МЛН
How to Build a Weather App with React
18:20
Arpan Neupane
Рет қаралды 24 М.
How ChatGPT Built My App in Minutes 🤯
8:28
Website Learners
Рет қаралды 1,9 МЛН
Create A Python API in 12 Minutes
12:05
Tech With Tim
Рет қаралды 560 М.
Professional Weather App with Django in Python
42:33
NeuralNine
Рет қаралды 41 М.
Make a Weather App in Python | Weather API | Python Project
20:33
Coding With Evan
Рет қаралды 113 М.
Learn Python With This ONE Project!
55:04
Tech With Tim
Рет қаралды 1,6 МЛН
RAG from the Ground Up with Python and Ollama
15:32
Decoder
Рет қаралды 23 М.
How to Build a Weather App in Python? | GeeksforGeeks
47:34
GeeksforGeeks
Рет қаралды 23 М.
React JS Tutorial - Build a Weather App With Cities Autocomplete
1:35:59
freeCodeCamp.org
Рет қаралды 294 М.
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 293 М.
keren sih #iphone #apple
0:16
kadangaruan
Рет қаралды 1,6 МЛН
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 1,7 МЛН