/WeatherGubchikBot

The bot for searching information about the weather in cities around the world.

Primary LanguagePythonMIT LicenseMIT

Header image Bot for showing information about the weather in cities of Ukraine and Europe

Demo

Click here to open telegram WeatherGubchikBot

Demo image

Project modules (requirements.txt)

aiogram asyncio APScheduler beautifulsoup4 lxml emoji fuzzywuzzy psycopg2 python-dotenv python-Levenshtein pytz requests user-agent


Features

  1. EmojiI use RegExp for getting emoji by weather description
  2. Daily mailingYou can sign up for the mailing to receive daily weather information in the city of your choice (you can turn it off at any time)
  3. Storing in databaseIf you sign up for the newsletter, information will store in PostgreSQL database
  4. Using fuzzy comparisonYou can type the title of the city and bot try to find it with using python fuzzywuzyy module for fuzzy comparison

Three languages (screenshots)

UA
Header image
EN
Header image
RU
Header image

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

DB_URI TIMEZONE BOT_TOKEN MY_TELEGRAM_CHAT_ID

Run Locally

Clone the project

  git clone https://github.com/Gubchik123/WeatherGubchikBot.git

Go to the project directory

  cd WeatherGubchikBot

Install dependencies

  pip install -r requirements.txt

Run the bot

  python bot/bot.py

Note: Don't forget about environment variables