Тёмный

How to Build a Weather App with Python | Weather API 

Arpan Neupane
Подписаться 12 тыс.
Просмотров 67 тыс.
50% 1

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/arp...
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/arp...
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

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 71   
@sudeep812
@sudeep812 3 года назад
Clean code and a very nicely explained.keep it up Arpan.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 3 года назад
Thank you !!
@ФёдорСмирнов-п1о
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 RU-vid videos by others had too many errors in them. Thank you!!!
@Wanetopia
@Wanetopia Год назад
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 2 года назад
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?
@declanmalone1279
@declanmalone1279 2 месяца назад
Pip install requests doesnt work for me in Windows. What is the exact command?
@GopiNath-uk8ib
@GopiNath-uk8ib Год назад
Simple and Sweet 😊 Thank You 😊
@NebaMcbright
@NebaMcbright 5 месяцев назад
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.
@verycoolwaffle
@verycoolwaffle 4 месяца назад
The console says my api key is invalid when i print out the data.json
@jabarhenv5933
@jabarhenv5933 Год назад
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?
@amossymindset
@amossymindset 2 года назад
Thank you. Awesome!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 года назад
Glad I could help!
@craigslistbuslistingsofnor6494
@craigslistbuslistingsofnor6494 8 месяцев назад
Excellent video!
@SamirDinkha-i9l
@SamirDinkha-i9l Год назад
I am getting error code 401 Unauthorized, but I verified my e-mail. What do you think?
@Greglovesyoumore
@Greglovesyoumore 11 месяцев назад
Same issue here, maybe we have to wait.
@lokesh5664
@lokesh5664 8 месяцев назад
I am also getting error code 401 how to resolve it
@satadrunaskar8993
@satadrunaskar8993 2 месяца назад
​@jamess.9930, was your issue solved ? Actually I contacted them and they are telling me to wait for a few hours.
@rishabhgulecha4272
@rishabhgulecha4272 Год назад
How do I change 10 digit time format to hour time such as sunrise or sunset? Thank you
@Akash-rj8te
@Akash-rj8te 3 месяца назад
you did'nt explain the url
@miltonneto2985
@miltonneto2985 2 года назад
Thanks, your video helped me understand how to round numbers to decimals
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 года назад
👍
@yosef_ii
@yosef_ii 2 месяца назад
Wait what??
@miltonneto2985
@miltonneto2985 2 месяца назад
@@yosef_ii I couldn't understand how I rounded decimal numbers and my colleague's video helped me understand how
@yosef_ii
@yosef_ii 2 месяца назад
@@miltonneto2985 Yeah it's just rounding decimals give you integers and in your comment you said numbers to decimals which is reversed yk what i mean
@miltonneto2985
@miltonneto2985 Месяц назад
@@yosef_ii True lol, I remember that day I was very stressed because I couldn't round the decimal numbers, I think that ended up causing this confusion 🤣
@quickenigma
@quickenigma 2 года назад
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 Год назад
Line 8 of authors code is the URL to openweather. Replace units=imperial with units=metric
@sammmammm
@sammmammm 8 месяцев назад
how to turn it into GUI
@Egsslereal
@Egsslereal Год назад
PLEASE SAY HOW TO TRANSLATE WEATHER AND TEMP
@olasojiemmanuel9132
@olasojiemmanuel9132 Год назад
Please how did you get the url for the weather_data?
@EpicfinchAnimations
@EpicfinchAnimations Год назад
thinking about the same thing
@anujdhanke
@anujdhanke 6 месяцев назад
It shows KeyError : 'weather'
@AzimMukith
@AzimMukith 2 месяца назад
I get this error when I use the key that was given for my account. However, when I use the key in his github it works fine. Not sure why
@emreboy0337
@emreboy0337 11 месяцев назад
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
@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!
@NNNedlog
@NNNedlog 2 года назад
This is very nice. Thanks for sharing
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 года назад
Thank you! Cheers!
@jaychou8430
@jaychou8430 2 года назад
Where I can find my URL?
@jorglopez4744
@jorglopez4744 4 месяца назад
How
@sixer-me6jz
@sixer-me6jz Год назад
It very helpful in my development of my discord bot thanks bro!
@fouadmaizar2914
@fouadmaizar2914 3 года назад
Thanks man for the explanation.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 3 года назад
You're welcome!
@saadalsaidy3712
@saadalsaidy3712 5 месяцев назад
that was great thank you very much
@ausbirdy
@ausbirdy 2 года назад
You are awesome!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 года назад
Appreciate it!
@sudeep812
@sudeep812 3 года назад
Very good !!!
@ArpanNeupaneProductions
@ArpanNeupaneProductions 3 года назад
Thanks!
@tw9756
@tw9756 2 года назад
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 2 года назад
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.
@tala_aa2993
@tala_aa2993 Год назад
where is the url?
@newbie6449
@newbie6449 10 месяцев назад
simple short and to the point info. Thanks man
@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.
@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 4 месяца назад
How to solve this 401?
@priy3865
@priy3865 8 месяцев назад
Thankyou so much it was very useful for me..✨🫰
Далее
Build a Weather app with Python and Tkinter
29:45
Просмотров 35 тыс.
The Biggest Mistake Beginners Make When Web Scraping
10:21
Modern Graphical User Interfaces in Python
11:12
Просмотров 1,5 млн
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
If __name__ == "__main__" for Python Developers
8:47
Просмотров 404 тыс.
Nobody Cares About Your Coding Projects
11:02
Просмотров 109 тыс.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Просмотров 1,6 млн
Modern Python logging
21:32
Просмотров 188 тыс.