Skip to content

"Open Date Checker automates the process of checking for available dates on mfa.gov.ua. It uses Selenium and Telegram alerts for real-time notifications. Stay up-to-date with this convenient tool!"

Notifications You must be signed in to change notification settings

OleksandrCherniavskyi/7.Open-Date-Checker-with-Telegram-Alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Open Date Checker with Telegram Alert

This is a small script that checks the availability of open dates on the mfa.gov.ua website and sends an alarm through Telegram if a date is available.

Dependencies

  • Python 3
  • Selenium (for checking open dates)
  • webdriver_manager (for managing the web driver)
  • python-telegram-bot (for sending Telegram alerts)

Installation

Manual Installation

  1. Create a virtual environment and activate it:
    python3 -m venv /workspace/venv
    source /workspace/venv/bin/activate
    
  2. Install the key libraries:
    pip install selenium
    pip install webdriver_manager
    pip install python-telegram-bot
    
  3. Create your Telegram bot using @BotFather. Make sure to obtain the bot token, which you'll need for your code.

Configuration

  • Modify the code to set the desired location and service to check for open dates. You can use driver.find_element(By.CSS_SELECTOR, "") to locate elements on the page.
  • Adjust the frequency of script execution with asyncio.sleep().
  • When running python main.py, connect to your bot and type "/start" in the chat. You should receive a message saying "Bot is running" and then type the next message to start the echo function.
  • If the bot finds an open date, it will send you a message and a screenshot of the available date.

About

"Open Date Checker automates the process of checking for available dates on mfa.gov.ua. It uses Selenium and Telegram alerts for real-time notifications. Stay up-to-date with this convenient tool!"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published