Build Weather Checker CLI App - Python programming + OpenWeatherMap API

Pubblicato il: 01 gennaio 1970
sul canale di: 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  


In questa pagina del sito puoi guardare il video online Build Weather Checker CLI App - Python programming + OpenWeatherMap API della durata di ore minuti seconda in buona qualità , che l'utente ha caricato BekBrace 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,290 volte e gli è piaciuto 134 spettatori. Buona visione!