{"id":23282201,"url":"https://github.com/alilotfi23/weather-fetcher","last_synced_at":"2025-10-14T13:08:05.776Z","repository":{"id":253370356,"uuid":"824467782","full_name":"alilotfi23/weather-fetcher","owner":"alilotfi23","description":"simple weather fetcher with python","archived":false,"fork":false,"pushed_at":"2024-09-12T07:50:27.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T13:07:23.453Z","etag":null,"topics":["argparse","openweathermap-api","pyhon","requests","requests-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alilotfi23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-05T07:43:14.000Z","updated_at":"2025-03-17T09:35:12.000Z","dependencies_parsed_at":"2024-08-16T09:29:22.817Z","dependency_job_id":"cc1de3da-a04d-4c5c-968d-b0ca5aa14be4","html_url":"https://github.com/alilotfi23/weather-fetcher","commit_stats":null,"previous_names":["alilotfi23/weather-fetcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alilotfi23/weather-fetcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fweather-fetcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fweather-fetcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fweather-fetcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fweather-fetcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alilotfi23","download_url":"https://codeload.github.com/alilotfi23/weather-fetcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fweather-fetcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018698,"owners_count":26086604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["argparse","openweathermap-api","pyhon","requests","requests-python"],"created_at":"2024-12-20T00:14:58.017Z","updated_at":"2025-10-14T13:08:05.747Z","avatar_url":"https://github.com/alilotfi23.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather Information CLI\n\nThis project is a command-line interface (CLI) tool that fetches and displays weather information for a specified city using the OpenWeatherMap API.\n\n## Features\n\n- Retrieve current weather information for any city.\n- Display weather conditions, description, temperature, and humidity.\n\n## Requirements\n\n- Python 3.6+\n- `requests` library\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/alilotfi23/weather-fetcher.git\n   cd weather-fetcher\n   ```\n\n2. Install the required Python packages:\n   ```bash\n   pip install requests\n   ```\n\n## Usage\n\n1. Obtain an API key from [OpenWeatherMap](https://home.openweathermap.org/users/sign_up).\n\n2. Run the script with the city name and your API key:\n   ```bash\n   python weather.py London --api-key=YOUR_API_KEY\n   ```\n\n## Example\n\n```bash\npython weather.py London --api-key=14991fca5a1cf13e6a4719ab8660c154\n```\n\nExpected output:\n```\nWeather information:\nWeather: Clear\nDescription: clear sky\nTemperature: 289.92 K\nHumidity: 68 %\n```\n\n## Code Overview\n\n- `get_weather(city, api_key)`: Fetches weather data for the specified city using the provided API key.\n- `main()`: Parses command-line arguments and displays the weather information.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Contributing\n\nContributions are welcome! Please create a pull request or open an issue to discuss any changes.\n\n---\n\nReplace `YOUR_API_KEY` with your actual OpenWeatherMap API key.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falilotfi23%2Fweather-fetcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falilotfi23%2Fweather-fetcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falilotfi23%2Fweather-fetcher/lists"}