Build Weather Checker CLI App - Python programming + OpenWeatherMap API

preview_player
Показать описание
Hey guys.
In this programming tutorial video, I'm going to demonstrate how to build a command-line interface (CLI) application to check the weather for a certain country/city using Python and the OpenWeatherMap API.
The video starts with importing necessary libraries such as requests, argparse, chalk, and pyfiglet.
I'll then walk you through the code step-by-step, showing how to parse command-line arguments and construct the API URL with query parameters. The API request is made using the requests library and the response status code is checked to ensure successful retrieval of weather information. The JSON response from the API is parsed and relevant weather information, such as temperature, feels like temperature, description, icon, city, and country, are extracted.
Finally, the output is constructed with a weather icon and printed using the chalk library. By the end of the video, viewers will have learned how to create a functional CLI weather checker using Python and the OpenWeatherMap API.

Connect with me on social media:

Equipment used in this production:
1- Keyboard
Logitech POP Keys Mechanical Wireless Keyboard with Customizable Emoji Keys, Durable Compact Design, Bluetooth or USB Connectivity, Multi-Device, OS Compatible - Blast Yellow

2- Microphone
Rode VideoMic Pro R Camera-Mount Shotgun Microphone
Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

I really like your coding style its really amazing

shivangsaxena
Автор

very nice video, really! I like that you share good content with us :D

cahwardev
Автор

Wonderful tutorial! Unfortunately, I didn't understand how to add a dictionary with icons in code. Can you be so kind to explain? Thanks a lot.

andgat
Автор

is that sign up and getting api key free of cost? on open weather map api . or will we have to pay after using key

NoorSiddique-bx
Автор

im making this for my college project so im signing up for api key kindly tell me will i have to pay or how long will this work

NoorSiddique-bx
Автор

Can you please explain why we are using api 2.5 instead of 3.0 ? What are the differences?

lng
Автор

can you please explain how you switched to terminal?

vanishreer
Автор

I put Like on Bek videos then i watch 😂

ahmedssss
Автор

What to do if i have to auto-refresh after a specific time ?

abhishekck
Автор

Can make CLI app with can return a query from neo4j database

rishimondal
Автор

plz code in Rust Version

you must going crazy😊

herryisnotcommie