Python Requests Tutorial - How to Call a Weather API

preview_player
Показать описание
In this video I'll use the Requests library in Python to connect to a Weather API to get the current temperature. This video uses Flask to display the pages.

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

Five years later and this is still the best video explaining how to do this in simple terms for us noobs out of the 20 or so I have watched. Thanks!

tinytsuruta
Автор

Want to learn more about requests in Python? Check out my course at prettyprinted.com

prettyprinted
Автор

very clear and to the point. I really enjoyed it. I like the way you explain things. Thanks for this great video!

alqamoos
Автор

Thanks so much. This is the best Python API tutorial I've seen

mekaseymour
Автор

09:15 haha, I have watched some dozens of hours of Python tutorial videos in the past few years, but I have never seen this "unexpected indent" error in them (which I see really often on my own computer, and alvays thought that it's my fault) now I finally know I'm not the only one, and that backspace + tab is the proper method of correcting it :)

The tutorial itself is really useful, thanks!

TomanovicsGergely
Автор

Hi..very clean and clear explanation. Good job!

joeharyar
Автор

Thanks for watching everyone. Check out prettyprinted.com for Python web development courses.

prettyprinted
Автор

Wow, thanks alot man. I've been trying to do a very similar thing with Flask some time ago, but couldn't figure out how to do it since I'm not that experienced with Flask or Python for that matter. I've made weather apps with Python before, just not combined with Flask. This video really helped me out and made me want to continue my project again! Thank you.

suplol
Автор

Nice explanation. Can you please do a video on python requests to Odata?

girimpr
Автор

Hello, can you please tell me how to do the 'render_template' and 'request.form' function while using Falcon framework instead of flask framework? Please help me !!!

vyviannellira
Автор

This is a great tutorial. Do you have something on how to store this API data and then use it for visualisation?

anitavissens
Автор

Great video. how did you create the server ? - appreciate if you can refer to a video

shuklidon
Автор

If you add "&units=imperial" to your URL, you wouldn't need the conversion variable. Nice tut

MrMojo
Автор

Are you using Wubi to run python? I'm having a hard time finding instructions to run it the way you are. Can you give me any suggestions?

aattaboy
Автор

I wrote the same method to convert to Fahrenheit in an app I made. Then I later realized you can pass an argument to the OpenWeather call to convert the units!

stevenmeyers
Автор

Hi man, how did you get your scripts to run on a webpage. 'Run python file in terminal' isn't working for me

joshuam
Автор

can you help me implement the youtube api to my django project. Cant seem to find proper resources

andyhussain
Автор

hey sorry I am trying to do this using the UK, however i am unable to do so, any suggestion

mariacasa
Автор

is there an alternative to coding the API key directly in your code?

geezwhiskas
Автор

Hi, mate! Thanks for tutorial. Could help me please to understand why i always get this error message in my browser when i enter ZipCode? "404 Not Found". My index.html and temperature.html in the same folder.

MrAcidAvenue