This Telegram bot retrieves weather information by scraping the BMKG (Badan Meteorologi, Klimatologi, dan Geofisika) website. Users can interact with the bot to get weather forecasts for different dates and cities in Indonesia.
/weather
command to initiate weather inquiry.- Interactive buttons for selecting the date and city.
- Weather information includes temperature, humidity, wind speed, and weather conditions.
- Error handling for invalid selections and unavailable data.
- Help command (
/help
) to guide users on how to interact with the bot.
- Python 3.7 or higher
requests
,bs4
,aiogram
libraries- BMKG Weather Scraper module
-
Install the required Python libraries:
pip install requests bs4 aiogram
-
Clone the repository:
git clone https://github.com/your_username/your_repository.git
-
Navigate to the project directory:
cd your_repository
-
Run the bot:
python main.py
-
Start interacting with the bot on Telegram.
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature
- Make your changes and commit them:
git commit -m "Add your feature or fix"
- Push to your branch:
git push origin feature/your-feature
- Create a pull request.
- Muhammad Haikal Rahman (https://github.com/haikale)
This project is licensed under the MIT License.