Automated TG bot for sending Polish news to the TG network
This project is a Telegram bot that performs the following functions: 1. Parses news from the official websites of major Polish cities (Warsaw, Krakow, Wroclaw, and others) daily at a specific designated time (18:30 local time). 2. Translates headlines and a short introductory text of the news from Polish to Ukrainian using the DeepL API. 3. Sends the translated news to users in the form of messages with photos and links to the original articles. 4. Stores information about selectors for parsing news from different cities in a special dictionary. 5. Contains functions for correctly processing dates published on websites, regardless of their format. 6. Sends news to both personal chats and Telegram channels (optional). 7. Operates in task scheduler mode, launching parsing and sending news daily at a set time. 8. Uses aiogram libraries for interaction with Telegram, requests_html for parsing websites, asyncio for asynchronous processing, newspaper3k for extracting article text, and DeepL for translation. The main goal of this bot is to aggregate and translate news from official sources of major Polish cities for the Ukrainian-speaking audience of Telegram. It automates the process of collecting, translating, and delivering important news from Polish sources.