Give it a try: https://t.me/small_wikipedia_bot
A Telegram bot that parses Wikipedia articles using the Python library parsel and returns relevant information to the user.
The bot allows users to quickly access facts, text excerpts, or article structure via Telegram without opening a web browser.
-
Python 3.12+
-
pyTelegramBotAPI (TeleBot) — for Telegram interactions
-
requests — for making HTTP requests to Wikipedia
-
parsel — for parsing HTML using XPath/CSS selectors
-
Docker — for isolated deployment
-
Retrieve Wikipedia article content by keyword
-
Extract headings, paragraphs, and links using parsel
-
Quick information search via Telegram
-
Runs in a Docker container for easy deployment
-
Have English and Ukrainian languages