No video

Weather API Tutorial in Python

  Рет қаралды 104,231

NeuralNine

NeuralNine

Күн бұрын

Пікірлер: 93
@jessicaprall4366
@jessicaprall4366 Жыл бұрын
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 :)
@LABrawl602
@LABrawl602 10 ай бұрын
I don't speak in english but you can use what do you know or use Google Translator
@hassanaqeel5594
@hassanaqeel5594 6 ай бұрын
Nazi's
@edwing637
@edwing637 5 ай бұрын
an@@LABrawl602 ...and that sentence made no sense. BTW I'm also from Germany.
@edwing637
@edwing637 5 ай бұрын
sorry, i didn`t mean that so bad.@@LABrawl602
@emilynormandeau6408
@emilynormandeau6408 4 күн бұрын
Fantastic dude!!! thank you!
@alham__aa
@alham__aa Жыл бұрын
Thank you, very much! This is a awesome tutorial and content is very easy to understand😍
@danielbali-jencik8798
@danielbali-jencik8798 3 ай бұрын
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
@harshakarapureddy2596
@harshakarapureddy2596 27 күн бұрын
Then, the best thing to do is research the things you don't understand and try to get the base topics. For example, I just did a free course on rest API and CRUD (which might sound complex but quite basic), and then I came here for practice and real-world experience. And it is helpful as I recognize some syntax and methods/modules he is pulling up.
@yari6896
@yari6896 2 жыл бұрын
This is great man, thank you!
@sandhyashankar8722
@sandhyashankar8722 Жыл бұрын
how do I get this weather information for a date in the past or future for a specific city?
@arghyl
@arghyl Жыл бұрын
Great video! thank you for going over every data point. In specific how the code works as you were writing it.
@nicktang6219
@nicktang6219 25 күн бұрын
a great lecture, thank you very much
@jburns3210
@jburns3210 Жыл бұрын
Great video, really like your presentation
@santiagobardelli5675
@santiagobardelli5675 8 ай бұрын
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...
@StayStoic__
@StayStoic__ 6 ай бұрын
Any luck? I am getting the same error message for 3 hours now
@pr0g4m3rgyt
@pr0g4m3rgyt Жыл бұрын
Not me stuck on how to do the degrees symbol
@markmcfadden7428
@markmcfadden7428 8 ай бұрын
Great vid, it really helped.
@nicktang6219
@nicktang6219 25 күн бұрын
i hop i can learn more from your video
@sagarsriva
@sagarsriva Жыл бұрын
How can I get rain info? Like what time is it going to rain next?
@0xSigma
@0xSigma 2 жыл бұрын
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
@Josh-og9eo
@Josh-og9eo Жыл бұрын
You can use the geocoder import that finds current location and pass that through LAT LONG :P
@adamfatyga7977
@adamfatyga7977 2 жыл бұрын
Hi. Can You make a video how to make a calendar-like app on KivyMD? I want to make calendar app, but every tutorials show how to make popup calendar. But i need to 'static' on screen calendar, just like buttons etc.
@033_gauravpatel8
@033_gauravpatel8 3 ай бұрын
thanks man!
@bunnyvlogs7647
@bunnyvlogs7647 2 ай бұрын
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
@mobaius6479
@mobaius6479 Ай бұрын
For anyone having trouble with Error 401, make sure you verify your account (with your email). otherwise you won't get access. hence the error.
@NormannCfC
@NormannCfC 2 жыл бұрын
Yes, windspeed is m/s
@IronMechanic7110
@IronMechanic7110 2 жыл бұрын
to convert easy in km/h {wind_speed*3.6:.2f}
@tomduke558
@tomduke558 2 жыл бұрын
yeah you literally replicate the predicament for the Brain... it literally is meters per second... it'd be insanely gusty for winds to be miles per second..
@ConorJTobin
@ConorJTobin 2 жыл бұрын
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?
@Mark.Richter
@Mark.Richter 2 жыл бұрын
You are limited to how many API calls you can make per minute and total per month. So if others had your API, they would use up your allotted amount.
@ConorJTobin
@ConorJTobin 2 жыл бұрын
Thanks a lot for that explanation, @@Mark.Richter, I appreciate it. The reason individual users only have an allotted amount is to avoid the risk of denial-of-service attacks against a site, is that right?
@Mark.Richter
@Mark.Richter 2 жыл бұрын
@@ConorJTobin in this case they have free accounts and subscription accounts.
@jesusdacoast872
@jesusdacoast872 2 жыл бұрын
Good job 😎 Thank you so much
@shbn7275
@shbn7275 2 жыл бұрын
Thank you very much!
@adoseofconsciousness3960
@adoseofconsciousness3960 Жыл бұрын
Thank you!
@mouaidsirafai
@mouaidsirafai Жыл бұрын
amazing, thank you! :)
@codzo2628
@codzo2628 2 жыл бұрын
Great video 👍👍
@philwebb6671
@philwebb6671 Жыл бұрын
For US cities, the source temperature data is in Fahrenheit. Openweather uses 273, not 273.15, in the conversion to Kelvin.
@Wave-px5me
@Wave-px5me 9 ай бұрын
i keep on getting method object is not subscriptable temp_kelvin = response['main']['temp']
@digitalnomad2196
@digitalnomad2196 4 ай бұрын
can you get forecasted data from the API ?
@saarthjhaveri1016
@saarthjhaveri1016 6 ай бұрын
from where did you find the base url?
@flosrv3194
@flosrv3194 4 ай бұрын
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.
@udaysethi2190
@udaysethi2190 4 ай бұрын
Same here
@markoskarabinakis1284
@markoskarabinakis1284 3 ай бұрын
read the api docs ... the url has changed because they changed their product's name
@ihuarulamchizoba4751
@ihuarulamchizoba4751 4 ай бұрын
Thanks a lot
@anowosad
@anowosad 2 жыл бұрын
Is the source code available?
@RHSSTUDIOS
@RHSSTUDIOS 6 ай бұрын
For the city can I just put my zip code?
@sillymonke21
@sillymonke21 Жыл бұрын
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 import requests ModuleNotFoundError: No module named 'requests'
@Josh-og9eo
@Josh-og9eo Жыл бұрын
I had this problem too. I changed my version of python to the global one on my pc. On VS code bottom of the terminal you can select your python version. Worked fine on 3.10
@sillymonke21
@sillymonke21 Жыл бұрын
@@Josh-og9eo so I should use visual studio?
@Josh-og9eo
@Josh-og9eo Жыл бұрын
@@sillymonke21 I’d recommend it personally
@user-bx3ht6in2g
@user-bx3ht6in2g Жыл бұрын
win+r type cmd, in cmd pip install requests
@sillymonke21
@sillymonke21 Жыл бұрын
@@user-bx3ht6in2g I found that out a long time ago but thanks for the help
@friday8118
@friday8118 Жыл бұрын
wondering why VSC gave me an error when importing the requestis library, the code stated "No module name 'requests' ". Any thoughts would be appreciated.
@sillymonke21
@sillymonke21 Жыл бұрын
Make sure your Python Interpreter has the 'requests' module installed. If request is not installed, then run 'pip install requests' in your command prompt.
@fiokfilmes1526
@fiokfilmes1526 2 жыл бұрын
What if my Api key is not workink? I got he error 401
@johnberry6663
@johnberry6663 Жыл бұрын
Did you find a solution, if so what is it? Thanks.
@grahampawar
@grahampawar Жыл бұрын
1) Make sure your API key is active on openweathermap's website because there is an option to deactivate it. 2) Make sure you have entered the API key correctly in the text file or added ".txt" to the filename if you have used the open("filename.txt", "r").read() function. 3) Make sure you have entered the url = base_url + "appid=" + "&q=" + city correctly and that each variable has proper values assigned. 4) Make sure you have installed and imported "requests" package.
@sibot6482
@sibot6482 Жыл бұрын
Getting json error
@jonakthakuria8508
@jonakthakuria8508 Жыл бұрын
Sir, how to get weather pridiction from the API?
@venkata1857
@venkata1857 2 жыл бұрын
Can we fetch data of 30 cities at a time ?
@clentargerototing2792
@clentargerototing2792 2 жыл бұрын
Hi, first of all thank you so much for this video... I just want to ask if weather api are free?
@RidingWithGerdas
@RidingWithGerdas 2 жыл бұрын
Simple plan yes. More advanced stuff is paid. For example forecasts.
@andrewtopgtate
@andrewtopgtate 2 жыл бұрын
hi! can I use this code for a twitter bot which posts hourly updates for weather?
@BrennerEraFan
@BrennerEraFan Жыл бұрын
Can you make a video about a script that will give Aviation weather reports, such as ATIS from a specific airport, or METAR or NOTAM reports from an API, then the output would be sent via a web hook to a discord server, as well as announced every 30 minutes or every hour or so through the speakers?
@DigneDiconfiance
@DigneDiconfiance Жыл бұрын
import reqeusts is the actaul error which occured
@dgankitgaming1872
@dgankitgaming1872 Жыл бұрын
Thanks sir
@rachanagupta6179
@rachanagupta6179 2 жыл бұрын
How can I get weather data on the date I hit?
@anaghaareddy9318
@anaghaareddy9318 Жыл бұрын
Thankyou...
@user-ns5gr5oq3t
@user-ns5gr5oq3t 2 жыл бұрын
thanks video
@Ere-enn
@Ere-enn 11 ай бұрын
I keep having errors with the response
@IronMechanic7110
@IronMechanic7110 2 жыл бұрын
thanks
@swail221
@swail221 Жыл бұрын
Nice
@stgaming1569
@stgaming1569 Жыл бұрын
how to import request
@IronMechanic7110
@IronMechanic7110 2 жыл бұрын
nice.
@eliezerdokpomiwa4149
@eliezerdokpomiwa4149 Жыл бұрын
the link request API not work, he send me response 401. have a free plan.
@amazing2210
@amazing2210 Жыл бұрын
Ur text color should be in yellow or blue unless u wdint want everyone to follow
@benlefler6304
@benlefler6304 11 ай бұрын
i am getting an error: "KeyError: 'main'" does somebody know the solution?
@-maxxxeffect
@-maxxxeffect Жыл бұрын
fucking question mark!!! I've trying to run weather API for 3 fucking hours! and it's not working without question mark :D
@soulquesthealingmusic2307
@soulquesthealingmusic2307 Жыл бұрын
You lost me after 3 minutes. Do you have a video for QGIS users who are not programmers?
@frandei4416
@frandei4416 2 жыл бұрын
Esto va a ser epiko papus xd
@gbagba81
@gbagba81 2 жыл бұрын
Viena í (contexto el chabon es de austria)
@anncokafor
@anncokafor Жыл бұрын
Celsius is arbitrary as well.
@coopernik
@coopernik Жыл бұрын
error code 401 :[
@ahmedy.m.daraghma6689
@ahmedy.m.daraghma6689 Жыл бұрын
I also have it!
@Mechanic_Coder
@Mechanic_Coder 11 ай бұрын
able to solve it??
@yateeam
@yateeam Жыл бұрын
Can i get your code please ?
@benlefler6304
@benlefler6304 11 ай бұрын
I also need itt
@tcgvsocg1458
@tcgvsocg1458 2 жыл бұрын
Can you do a video on how to access twitter and create a account without phone number please ? Thx a lot
@Remedialpriya.
@Remedialpriya. 2 жыл бұрын
Sup
@colbr06
@colbr06 2 ай бұрын
This is showing your work, but definitely not teaching.
@pottoker612
@pottoker612 2 жыл бұрын
Hello said the 🕷 spider to the fly... 🪰
Учим Python за 1 час! #ОтПрофессионала | HD Remake
1:41:13
Хауди Хо™ - Просто о мире IT!
Рет қаралды 1,1 МЛН
Working with APIs in Python [For Your Data Science Project]
28:32
StrataScratch
Рет қаралды 111 М.
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 97 МЛН
小丑把天使丢游泳池里#short #angel #clown
00:15
Super Beauty team
Рет қаралды 48 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 59 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 168 МЛН
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 299 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
National Weather Service REST API with Python
34:22
Eli the Computer Guy
Рет қаралды 4,3 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
How to Build a Weather App with Python | Weather API
8:36
Arpan Neupane
Рет қаралды 65 М.
Web Scraping Weather Data with Python
10:48
John Watson Rooney
Рет қаралды 61 М.
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 188 М.
Working With APIs in Python - Pagination and Data Extraction
22:36
John Watson Rooney
Рет қаралды 100 М.
Web Scraping with Professional Proxy Servers in Python
32:26
NeuralNine
Рет қаралды 49 М.
Professional Weather App with Django in Python
42:33
NeuralNine
Рет қаралды 45 М.
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 97 МЛН