Weather API Tutorial in Python

preview_player
Показать описание
Today we will learn how to use a weather API in Python, to get information about the current temperature, humidity and more.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

Thank you, this is very helpful !
You can also get the data with personalized units, if you add something like "&units=metric" for celsius or "&units=imperial" for Fahrenheit.
Sorry, my english is not that good.
Greetings from Germany :)

jessicaprall
Автор

how do I get this weather information for a date in the past or future for a specific city?

sandhyashankar
Автор

Thank you, very much!
This is a awesome tutorial and content is very easy to understand😍

alham__aa
Автор

am i the only one that isnt really getting what he is writing just copying, i mean its cool that you know what a response is but i came here to learn and you just show us how to do it

danielbali-jencik
Автор

Great video! thank you for going over every data point. In specific how the code works as you were writing it.

arghyl
Автор

Great video, really like your presentation

jburns
Автор

Thank you, unefortunatly I couldnt make this API work, I receive 401 error all the time... for the last 4 hours... this things are very usefull when it works...

santiagobardelli
Автор

like is the api key a string or int wht should i format it as

afraazahmedusmani
Автор

How can I get rain info? Like what time is it going to rain next?

saggy-mt
Автор

For US cities, the source temperature data is in Fahrenheit. Openweather uses 273, not 273.15, in the conversion to Kelvin.

philwebb
Автор

Doesnt work. constantly getting 401 error even if i get the pay as you go subscription. no way to make anything work no matter how much youtube tuto im watching.

flosrv
Автор

i hop i can learn more from your video

nicktang
Автор

I'm getting an error. I've installed the requests library, but I am still getting this error:
Traceback (most recent call last):
File "C:\Users\NAME\PycharmProjects\WeatherScript\venv\Weather.py", line 1, in <module>
import requests
ModuleNotFoundError: No module named 'requests'

sillymonke
Автор

i keep on getting method object is not subscriptable temp_kelvin = response['main']['temp']

Wave-pxme
Автор

Sir kindly let us know where is this code located.. not able to see this in your github account...seems like u mixed this with django project

bunnyvlogs
Автор

I really enjoyed this video, but at the risk of asking a stupid question, I noted you went to great lengths to hide your API key. What are the security implications for this key, which is specific to you, getting out, and why is it that each individual is assigned a personal key? Further, what is considered best-practice for obscuring such keys in public repositories? If I wanted to host a similar project on GitHub, for example, how would I go about it?

ConorJTobin
Автор

Very educational! Is there a way to automatically detect the city? Through ip or location instead of hard coding “London” for instance. Thanks in advance

xSigma
Автор

wondering why VSC gave me an error when importing the requestis library, the code stated "No module name 'requests' ". Any thoughts would be appreciated.

friday
Автор

What if my Api key is not workink? I got he error 401

fiokfilmes
Автор

can you get forecasted data from the API ?

digitalnomad