The-Economist-Telegram-Bot

所属分类:Docker
开发工具:Java
文件大小:0KB
下载次数:0
上传日期:2023-11-26 13:07:13
上 传 者sh-1993
说明:  一个基于Java的Telegram机器人,可从《经济学人》(The Economist)及时更新。具有实时新闻获取、定时发布以及与Docker和Railway的无缝部署。
(A Java-based Telegram bot delivering timely updates from The Economist. Featuring real-time news fetching, scheduled postings, and seamless deployment with Docker and Railway.)

文件列表:
.idea/ (0, 2023-12-02)
.idea/dataSources.local.xml (820, 2023-12-02)
.idea/dataSources.xml (952, 2023-12-02)
.idea/dataSources/ (0, 2023-12-02)
.idea/dataSources/7ac41969-5363-48c9-af4b-d1d8098e418e.xml (47990, 2023-12-02)
.idea/dataSources/7ac41969-5363-48c9-af4b-d1d8098e418e/ (0, 2023-12-02)
.idea/dataSources/7ac41969-5363-48c9-af4b-d1d8098e418e/storage_v2/ (0, 2023-12-02)
.idea/dataSources/7ac41969-5363-48c9-af4b-d1d8098e418e/storage_v2/_src_/ (0, 2023-12-02)
.idea/dataSources/7ac41969-5363-48c9-af4b-d1d8098e418e/storage_v2/_src_/schema/ (0, 2023-12-02)
.idea/dataSources/7ac41969-5363-48c9-af4b-d1d8098e418e/storage_v2/_src_/schema/main.uQUzAA.meta (71, 2023-12-02)
.idea/gradle.xml (671, 2023-12-02)
.idea/inspectionProfiles/ (0, 2023-12-02)
.idea/inspectionProfiles/Project_Default.xml (681, 2023-12-02)
.idea/misc.xml (457, 2023-12-02)
.idea/sqldialects.xml (231, 2023-12-02)
.idea/uiDesigner.xml (8792, 2023-12-02)
.idea/vcs.xml (180, 2023-12-02)
.idea/workspace.xml (27138, 2023-12-02)
Dockerfile (622, 2023-12-02)
META-INF/ (0, 2023-12-02)
META-INF/MANIFEST.MF (60, 2023-12-02)
build.gradle (1535, 2023-12-02)
extractedBigHtmlContent.html (6788, 2023-12-02)
extractedHtmlContent.html (6123, 2023-12-02)
gradle/ (0, 2023-12-02)
gradle/wrapper/ (0, 2023-12-02)
gradle/wrapper/gradle-wrapper.jar (63721, 2023-12-02)
gradle/wrapper/gradle-wrapper.properties (250, 2023-12-02)
gradlew (8692, 2023-12-02)
gradlew.bat (2776, 2023-12-02)
identifier.sqlite (0, 2023-12-02)
railway.json (481, 2023-12-02)
settings.gradle (43, 2023-12-02)
src/ (0, 2023-12-02)
src/main/ (0, 2023-12-02)
src/main/java/ (0, 2023-12-02)
src/main/java/org/ (0, 2023-12-02)
src/main/java/org/example/ (0, 2023-12-02)
... ...

# EconomistBot ## Description EconomistBot is a Java-based Telegram bot designed to provide users with the latest news updates. Leveraging the capabilities of Telegram's bot API and web scraping technologies, it dynamically fetches and delivers news content from reputable sources. This bot is particularly tailored to provide updates from "The Economist," making it a valuable tool for users interested in staying informed about global events and economic news. ## Try the Bot You can start using the EconomistBot by following this link to the bot on Telegram: [The World in Brief Bot](https://t.me/Theworldinbrief_bot). ## Features - Real-time news updates directly in Telegram. - Integration with news sources for up-to-date information. - Scheduled daily news updates to keep users informed. - Custom commands for on-demand news retrieval. - Efficient HTML content parsing and formatting for Telegram. - Containerization with Docker for consistent deployment environments. - Continuous deployment and hosting with Railway for seamless updates and scalability. ## Libraries and Technologies ### Java - **Version**: JDK 11 or higher. - **Purpose**: Primary programming language for developing the bot. ### JSoup - **Website**: [JSoup.org](https://jsoup.org/) - **Purpose**: Used for parsing HTML and scraping news content from web pages. ### Telegram Bot API - **Documentation**: [Telegram Bot API](https://core.telegram.org/bots/api) - **Purpose**: Provides the necessary tools and functionalities to interact with users on Telegram. ### Scheduled Executor Service - **JavaDoc**: [ScheduledExecutorService](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ScheduledExecutorService.html) - **Purpose**: Used for scheduling daily news updates at specific times. ### Eclipse Jetty - **Website**: [Eclipse Jetty](https://www.eclipse.org/jetty/) - **Purpose**: Provides a web server and `javax.servlet` container for handling HTTP requests and serving health check endpoints. ### Logging - **Technology**: Java Util Logging - **Purpose**: For logging information, warnings, and errors during the application's runtime. ### Gradle - **Purpose**: Dependency management and project build tool. ### Environment Configuration - **Purpose**: Managing configuration properties such as Telegram bot token and username. ## Configuration Configure your API key in the config.properties: ```shell bot.token=YOUR_BOT_TOKER_HERE bot.username=YOUR_BOT_USERMANE_HERE ``` ## Email rpilyushin [at] gmail.com

近期下载者

相关文件


收藏者