Build Weather Checker CLI App - Python programming + OpenWeatherMap API

Publicado el: 01 enero 1970
en el canal de: BekBrace
5,290
134

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.
GitHub: https://github.com/BekBrace/weather-a...

Connect with me on social media:
Follow me on Twitter:   / bekbrace  
Like my Facebook page:   / bekbrace  
Follow me on Instagram:   / bek_brace  

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
Link: https://amzn.to/3Qk6Hvq

2- Microphone
Rode VideoMic Pro R Camera-Mount Shotgun Microphone
Link: https://amzn.to/3GmKSaf
Join this channel to get access to perks:
   / @bekbrace  


En esta página del sitio puede ver el video en línea Build Weather Checker CLI App - Python programming + OpenWeatherMap API de Duración hora minuto segunda en buena calidad , que subió el usuario BekBrace 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 5,290 veces y le gustó 134 a los espectadores. Disfruta viendo!