⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
Python aibarkdata-analysisdockerhot-newsllmmailmcpmcp-servernewsntfypythonrsstrending-topicswechatwework
v3.0.1
sansan601b6cd1bdc3
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex b8819c733e..3ba3e8d5a7 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -49,7 +49,7 @@ jobs:with:context: .file: ./docker/Dockerfile- platforms: linux/amd64,linux/arm64,linux/arm/v7+ platforms: linux/amd64,linux/arm64push: truetags: ${{ steps.meta.outputs.tags }}labels: ${{ steps.meta.outputs.labels }}diff --git a/docker/Dockerfile b/docker/Dockerfileindex 61cc44fab0..82e1f8bebb 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -6,69 +6,54 @@ WORKDIR /appARG TARGETARCHENV SUPERCRONIC_VERSION=v0.2.34-# supercronic + locale + 编译依赖RUN set -ex && \apt-get update && \- apt-get install -y --no-install-recommends \- curl \- ca-certificates \- locales \- gcc \- python3-dev \- libffi-dev \- build-essential && \+ # 添加 locales 包+ apt-get install -y --no-install-recommends curl ca-certificates locales && \+ # 配置中文 localesed -i -e 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/' /etc/locale.gen && \sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \locale-gen && \- # 根据架构选择并下载 supercronic+ # 下载 supercronic(只支持 amd64 和 arm64)case ${TARGETARCH} in \amd64) \- export SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/${SUPERCRONIC_VERSION}/supercronic-linux-amd64; \- export SUPERCRONIC_SHA1SUM=e8631edc1775000d119b70fd40339a7238eece14; \- export SUPERCRONIC=supercronic-linux-amd64; \- ;; \+ export SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/${SUPERCRONIC_VERSION}/supercronic-linux-amd64; \+ export SUPERCRONIC_SHA1SUM=e8631edc1775000d119b70fd40339a7238eece14; \+ export SUPERCRONIC=supercronic-linux-amd64; \+ ;; \arm64) \- export SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/${SUPERCRONIC_VERSION}/supercronic-linux-arm64; \- export SUPERCRONIC_SHA1SUM=4ab6343b52bf9da592e8b4bb7ae6eb5a8e21b71e; \- export SUPERCRONIC=supercronic-linux-arm64; \- ;; \- arm) \- export SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/${SUPERCRONIC_VERSION}/supercronic-linux-arm; \- export SUPERCRONIC_SHA1SUM=4ba4cd0da62082056b6def085fa9377d965fbe01; \- export SUPERCRONIC=supercronic-linux-arm; \- ;; \- 386) \- export SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/${SUPERCRONIC_VERSION}/supercronic-linux-386; \- export SUPERCRONIC_SHA1SUM=80b4fff03a8d7bf2f24a1771f37640337855e949; \- export SUPERCRONIC=supercronic-linux-386; \- ;; \+ export SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/${SUPERCRONIC_VERSION}/supercronic-linux-arm64; \+ export SUPERCRONIC_SHA1SUM=4ab6343b52bf9da592e8b4bb7ae6eb5a8e21b71e; \+ export SUPERCRONIC=supercronic-linux-arm64; \+ ;; \*) \- echo "Unsupported architecture: ${TARGETARCH}"; \- exit 1; \- ;; \+ echo "Unsupported architecture: ${TARGETARCH}. Only amd64 and arm64 are supported."; \+ exit 1; \+ ;; \esac && \echo "Downloading supercronic for ${TARGETARCH} from ${SUPERCRONIC_URL}" && \+ # 添加重试机制和超时设置for i in 1 2 3 4 5; do \- echo "Download attempt $i/5"; \- if curl --fail --silent --show-error --location --retry 3 --retry-delay 2 --connect-timeout 30 --max-time 120 -o "$SUPERCRONIC" "$SUPERCRONIC_URL"; then \- echo "Download successful"; \- break; \- else \- echo "Download attempt $i failed, exit code: $?"; \- if [ $i -eq 5 ]; then \- echo "All download attempts failed"; \- exit 1; \- fi; \- sleep $((i * 2)); \- fi; \+ echo "Download attempt $i/5"; \+ if curl --fail --silent --show-error --location --retry 3 --retry-delay 2 --connect-timeout 30 --max-time 120 -o "$SUPERCRONIC" "$SUPERCRONIC_URL"; then \+ echo "Download successful"; \+ break; \+ else \+ echo "Download attempt $i failed, exit code: $?"; \+ if [ $i -eq 5 ]; then \+ echo "All download attempts failed"; \+ exit 1; \+ fi; \+ sleep $((i * 2)); \+ fi; \done && \echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - && \chmod +x "$SUPERCRONIC" && \mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" && \ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic && \+ # 验证安装supercronic -version && \- apt-get remove -y curl gcc python3-dev libffi-dev build-essential && \- apt-get autoremove -y && \+ apt-get remove -y curl && \apt-get clean && \rm -rf /var/lib/apt/lists/*@@ -86,6 +71,7 @@ RUN sed -i 's/\r$//' /entrypoint.sh.tmp && \chmod +x manage.py && \mkdir -p /app/config /app/output+# 添加 locale 相关环境变量ENV PYTHONUNBUFFERED=1 \CONFIG_PATH=/app/config/config.yaml \FREQUENCY_WORDS_PATH=/app/config/frequency_words.txt \diff --git a/main.py b/main.pyindex e549f6903a..6a188a82ef 100644--- a/main.py+++ b/main.py@@ -20,7 +20,7 @@ import requestsimport yaml-VERSION = "2.4.4"+VERSION = "3.0.1"# === SMTP邮件配置 ===diff --git a/readme.md b/readme.mdindex b34c8112aa..e61efdab6b 100644--- a/readme.md+++ b/readme.md@@ -11,7 +11,7 @@[](https://github.com/sansan0/TrendRadar/stargazers)[](https://github.com/sansan0/TrendRadar/network/members)[](LICENSE)-[](https://github.com/sansan0/TrendRadar)+[](https://github.com/sansan0/TrendRadar)[](https://work.weixin.qq.com/)[](https://telegram.org/)@@ -500,6 +500,12 @@ GitHub 一键 Fork 即可使用,无需编程基础。- **小版本更新**:从 v2.x 升级到 v2.y, 用本项目的 `main.py` 代码替换你 fork 仓库中的对应文件- **大版本升级**:从 v1.x 升级到 v2.y, 建议删除现有 fork 后重新 fork,这样更省力且避免配置冲突+### 2025/10/21 - v3.0.1++- **更新内容**:+ - 尝试修复 ntfy 推送编码问题 + 2+ - docker 移除对 linux/arm/v7 架构的支持+### 2025/10/20 - v3.0.0**重大更新 - AI 分析功能上线** 🤖@@ -510,11 +516,6 @@ GitHub 一键 Fork 即可使用,无需编程基础。- 自然语言交互:通过对话方式查询和分析新闻数据- 多客户端支持:Claude Desktop、Cherry Studio、Cursor、Cline 等-- **快速部署方案**:- - Cherry Studio 一键部署(推荐新手):GUI 配置,5分钟完成- - Claude Desktop 配置(技术用户):JSON 配置文件- - 完整的部署文档和使用指南-- **分析能力**:- 话题趋势分析(热度追踪、生命周期、爆火检测、趋势预测)- 数据洞察(平台对比、活跃度统计、关键词共现)@@ -1314,13 +1315,8 @@ Cherry Studio 提供 GUI 配置界面,可快速部署。> 心意到就行,收到的**点赞**用于提高开发者开源的积极性。**点赞**已收录于**致谢名单**- **GitHub Issues**:适合针对性强的解答。提问时请提供完整信息(截图、错误日志、系统环境等)。-- **公众号交流**:适合快速咨询。尽量别私信,建议优先在相关文章下的公共留言区交流,有个收敛度+- **公众号交流**:适合快速咨询。建议优先在相关文章下的公共留言区交流,如私信,请文明礼貌用语😉-> 对于极少数私信中表达的那种'摸索了好久都部署不了'的焦急心态,我能理解,但我认为这不足以成为我必须立刻抽空帮你解决的理由->-> 请舒缓情绪后再表达,别让我觉得'我分享了项目,你部署不了反而首先怪我',对于这种非商业化的个人开源小作品,多一点担待~好不?😉->-> 项目的 issues 和留言我还算卖力解决,除了有自己写的项目哪怕再烂也得含泪😢维护的念头,主要还是因为有上面感谢的那群人的支持😘|公众号关注 |微信点赞 | 支付宝点赞 ||:---:|:---:|:---:|