A simple yet practical Python application that retrieves real-time weather information for any city using a weather API. The program accepts a city name from the user, sends an API request, processes the JSON response, and displays important weather details in a clean and readable format.
- ๐ Search weather by city name
- ๐ Display country and city information
- ๐ก๏ธ Temperature in Celsius (ยฐC)
- ๐ก๏ธ Temperature in Fahrenheit (ยฐF)
- ๐ก Real-time weather data using an API
- ๐ฆ JSON response parsing
- โก Fast and lightweight command-line application
- Python 3
- Requests Library
- REST API
- JSON
- Run the Python script.
- Enter the desired city name.
- The application sends a request to the weather API.
- The API returns weather data in JSON format.
- The program extracts the required information and displays:
- City
- Country
- Temperature (ยฐC)
- Temperature (ยฐF)
Enter City: London
City : London
Country : GB
Temperature : 18.4 ยฐC
Temperature : 65.1 ยฐF
- Working with REST APIs
- Sending HTTP requests
- JSON Parsing
- Dictionary Handling
- User Input
- Error Handling
- Python Programming
- Display weather description
- Humidity information
- Wind speed
- Sunrise & Sunset time
- Weather icons
- 5-Day Forecast
Muhammad Hasnain
If you found this project useful, consider giving it a โญ on GitHub.