This project is a Python script that scrapes weather information from https://www.accuweather.com and sends it to a Telegram bot. It uses mainly two libraries. BeautifulSoup for web scraping and Python-telegram-bot library to be able to interact with the telegram bot.
- Scrapes current weather information from a specified URL.
- Scrapes "Top Stories" and "Featured Stories" sections from the same URL
- Sends the collected data to a Telegram bot to always stay on top of current weather and information.
Before you begin, ensure you have met the following requirements:
- Python 3.11
- Required python libraries (included in requirements.txt)
- Clone this repository (git clone https://github.com/emontes22/Weather_Scraper.git).
- Nagivate to the project directory.
- Configure the script:
- Open
scraper.py
and replace'Your_user_agent'
with your actual user agent. (Google user agent) - Open
tele_bot.py
and replace'Your_TOKEN_API'
and'Your_ID'
with your Telegram bot token and chat ID. (Instructions to create a telegram bot)
- Open
- Run the script. (
'python tele_bot.py'
or 'python3 tele_bot.py'
) - The script will scrape the data and send it to your Telegram bot.
This project is licensed under the MIT License. See the LICENSE file for details.