Build Weather Checker CLI App - Python programming + OpenWeatherMap API

Publié le: 01 janvier 1970
sur la chaîne: 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  


Sur cette page du site, vous pouvez voir la vidéo en ligne Build Weather Checker CLI App - Python programming + OpenWeatherMap API durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur BekBrace 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 5,290 fois et il a aimé 134 téléspectateurs. Bon visionnage!