Build Weather Checker CLI App - Python programming + OpenWeatherMap API

Veröffentlicht am: 01 Januar 1970
auf dem Kanal: 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  


Auf dieser Seite können Sie das Online-Video Build Weather Checker CLI App - Python programming + OpenWeatherMap API mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer BekBrace 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 5,290 Mal angesehen und es wurde von 134 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!