Переглянути джерело

fix: 修复mcp的时间查询问题,同时更新了中英文文档

sansan 6 місяців тому
батько
коміт
a450339ab7

+ 1745 - 0
README-EN.md

@@ -0,0 +1,1745 @@
+<div align="center" id="trendradar">
+
+<a href="https://github.com/sansan0/TrendRadar" title="TrendRadar">
+  <img src="/_image/banner.jpg" alt="TrendRadar Banner" width="50%">
+</a>
+
+🚀 Deploy in <strong>30 seconds</strong> — Your Smart Trending News Assistant
+
+<a href="https://trendshift.io/repositories/14726" target="_blank"><img src="https://trendshift.io/api/badge/repositories/14726" alt="sansan0%2FTrendRadar | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
+
+<a href="https://share.302.ai/mEOUzG" target="_blank"><img src="_image/302ai.png" alt="302.AI logo" height="40"/></a>
+
+[![GitHub Stars](https://img.shields.io/github/stars/sansan0/TrendRadar?style=flat-square&logo=github&color=yellow)](https://github.com/sansan0/TrendRadar/stargazers)
+[![GitHub Forks](https://img.shields.io/github/forks/sansan0/TrendRadar?style=flat-square&logo=github&color=blue)](https://github.com/sansan0/TrendRadar/network/members)
+[![License](https://img.shields.io/badge/license-GPL--3.0-blue.svg?style=flat-square)](LICENSE)
+[![Version](https://img.shields.io/badge/version-v3.0.5-blue.svg)](https://github.com/sansan0/TrendRadar)
+[![MCP](https://img.shields.io/badge/MCP-v1.0.2-green.svg)](https://github.com/sansan0/TrendRadar)
+
+[![WeWork](https://img.shields.io/badge/WeWork-Notification-00D4AA?style=flat-square)](https://work.weixin.qq.com/)
+[![Telegram](https://img.shields.io/badge/Telegram-Notification-00D4AA?style=flat-square)](https://telegram.org/)
+[![DingTalk](https://img.shields.io/badge/DingTalk-Notification-00D4AA?style=flat-square)](#)
+[![Feishu](https://img.shields.io/badge/Feishu-Notification-00D4AA?style=flat-square)](https://www.feishu.cn/)
+[![Email](https://img.shields.io/badge/Email-Notification-00D4AA?style=flat-square)](#)
+[![ntfy](https://img.shields.io/badge/ntfy-Notification-00D4AA?style=flat-square)](https://github.com/binwiederhier/ntfy)
+
+
+[![GitHub Actions](https://img.shields.io/badge/GitHub_Actions-Automation-2088FF?style=flat-square&logo=github-actions&logoColor=white)](https://github.com/sansan0/TrendRadar)
+[![GitHub Pages](https://img.shields.io/badge/GitHub_Pages-Deployment-4285F4?style=flat-square&logo=github&logoColor=white)](https://sansan0.github.io/TrendRadar)
+[![Docker](https://img.shields.io/badge/Docker-Deployment-2496ED?style=flat-square&logo=docker&logoColor=white)](https://hub.docker.com/r/wantcat/trendradar)
+[![MCP Support](https://img.shields.io/badge/MCP-AI_Analysis-FF6B6B?style=flat-square&logo=ai&logoColor=white)](https://modelcontextprotocol.io/)
+
+</div>
+
+<div align="center">
+
+**[中文](README.md)** | **English**
+
+</div>
+
+
+> This project is designed to be lightweight and easy to deploy
+
+## 📑 Quick Navigation
+
+<div align="center">
+
+| [🎯 Core Features](#-core-features) | [🚀 Quick Start](#-quick-start) | [🐳 Docker Deployment](#-docker-deployment) | [🤖 AI Analysis](#-ai-analysis-deployment) |
+|:---:|:---:|:---:|:---:|
+| [📝 Changelog](#-changelog) | [🔌 MCP Clients](#-mcp-clients) | [❓ FAQ & Support](#-faq--support) | [⭐ Related Projects](#-related-projects) |
+| [🔧 Custom Platforms](#custom-monitoring-platforms) | [📝 Keywords Config](#frequencywordstxt-configuration) | | |
+
+</div>
+
+- Thanks to **bug reporters**, your feedback makes this project better 😉
+- Thanks to **stargazers**, your stars and forks are the best support for open source 😍
+- Thanks to **followers**, your interactions make the content more meaningful 😎
+
+<details>
+<summary>👉 Click to view <strong>Acknowledgments</strong> (Current <strong>🔥71🔥</strong> supporters)</summary>
+
+### Data Support
+
+This project uses the API from [newsnow](https://github.com/ourongxing/newsnow) to fetch multi-platform data
+
+### Promotion Support
+
+> Thanks to the following platforms and individuals for recommendations (in chronological order)
+
+- [Appinn (小众软件)](https://mp.weixin.qq.com/s/fvutkJ_NPUelSW9OGK39aA) - Open source software recommendation platform
+- [LinuxDo Community](https://linux.do/) - Tech enthusiasts community
+- [Ruan Yifeng's Weekly](https://github.com/ruanyf/weekly) - Influential tech weekly in Chinese tech circle
+
+### Community Support
+
+> Thanks to **financial supporters**. Your generosity has transformed into snacks and drinks beside my keyboard, accompanying every iteration of this project
+
+| Supporter | Amount (CNY) | Date | Note |
+| :-------: | :----------: | :--: | :--: |
+| *鬼 | 1 | 2025.11.17 | |
+| *超 | 10 | 2025.11.17 | |
+| R*w | 10 | 2025.11.17 | Great agent work! |
+| J*o | 1 | 2025.11.17 | Thanks for open source |
+| *晨 | 8.88 | 2025.11.16 | Nice project |
+| *海 | 1 | 2025.11.15 | |
+| *德 | 1.99 | 2025.11.15 | |
+| *疏 | 8.8 | 2025.11.14 | Great project |
+| M*e | 10 | 2025.11.14 | Open source is not easy |
+| **柯 | 1 | 2025.11.14 | |
+| *云 | 88 | 2025.11.13 | Good project |
+| *W | 6 | 2025.11.13 | |
+| *凯 | 1 | 2025.11.13 | |
+| 对*. | 1 | 2025.11.13 | Thanks for TrendRadar |
+| s*y | 1 | 2025.11.13 | |
+| **翔 | 10 | 2025.11.13 | Wish I found it earlier |
+| *韦 | 9.9 | 2025.11.13 | TrendRadar is awesome |
+| h*p | 5 | 2025.11.12 | Support Chinese open source |
+| c*r | 6 | 2025.11.12 | |
+| a*n | 5 | 2025.11.12 | |
+| 。*c | 1 | 2025.11.12 | Thanks for sharing |
+| ... | ... | ... | **(More 50+ supporters)** |
+
+</details>
+
+
+> This project uses the API from [newsnow](https://github.com/ourongxing/newsnow) to fetch multi-platform data
+
+## ✨ Core Features
+
+### **Multi-Platform Trending News Aggregation**
+
+- Zhihu (知乎)
+- Douyin (抖音)
+- Bilibili Hot Search
+- Wallstreetcn (华尔街见闻)
+- Tieba (贴吧)
+- Baidu Hot Search
+- Yicai (财联社)
+- Thepaper (澎湃新闻)
+- Ifeng (凤凰网)
+- Toutiao (今日头条)
+- Weibo (微博)
+
+Default monitoring of 11 mainstream platforms, with support for adding custom platforms.
+
+<details id="custom-monitoring-platforms">
+<summary><strong>👉 Click to expand: Custom Monitoring Platforms</strong></summary>
+<br>
+
+The news data comes from [newsnow](https://github.com/ourongxing/newsnow). You can visit the [website](https://newsnow.busiyi.world/) and click [More] to see if your desired platform is available.
+
+To add platforms, visit the [source code](https://github.com/ourongxing/newsnow/tree/main/server/sources), and modify the `platforms` configuration in `config/config.yaml`:
+
+```yaml
+platforms:
+  - id: "toutiao"
+    name: "Toutiao"
+  - id: "baidu"
+    name: "Baidu Hot"
+  - id: "wallstreetcn-hot"
+    name: "Wallstreetcn"
+  # Add more platforms...
+```
+
+If you're unsure, you can copy from [community-shared configurations](https://github.com/sansan0/TrendRadar/issues/95).
+
+</details>
+
+### **Smart Push Strategies**
+
+**Three Push Modes**:
+
+| Mode | Target Users | Push Timing | Display Content | Use Case |
+|------|--------------|-------------|-----------------|----------|
+| **Daily Summary**<br/>`daily` | 📋 Managers/Regular Users | Scheduled push (default: hourly) | All matched news of the day<br/>+ New news section | Daily reports<br/>Comprehensive trend overview |
+| **Current Rankings**<br/>`current` | 📰 Content Creators | Scheduled push (default: hourly) | Current ranking matches<br/>+ New news section | Real-time hot topics<br/>What's trending now |
+| **Incremental Monitor**<br/>`incremental` | 📈 Traders/Investors | Push only when new | Newly appeared matching news | Avoid duplicate info<br/>High-frequency monitoring |
+
+**Additional Feature - Push Time Window Control** (Optional):
+
+This feature works independently with any push mode:
+
+- **Time Window Limit**: Set push time range (e.g., 09:00-18:00 or 20:00-22:00)
+- **Push Frequency Control**:
+  - Multiple pushes within window: Push every execution
+  - Once per day: Only push once within window (suitable for daily/current modes)
+- **Typical Scenarios**:
+  - Work hours push: Only receive messages during 09:00-18:00 on weekdays
+  - Evening summary: Receive summary at fixed evening time (e.g., 20:00-22:00)
+  - Do not disturb: Prevent notifications during non-work hours
+
+> Tip: This feature is disabled by default, enable it manually in `config/config.yaml` with `push_window.enabled`
+
+### **Precise Content Filtering**
+
+Set personal keywords (e.g., AI, BYD, Education Policy) to receive only relevant trending news, filtering out noise.
+
+- Supports normal words, required words (+), and filter words (!)
+- Group-based management with independent statistics for different topics
+
+> You can also skip filtering and receive all trending news. See v2.0.1 in [Changelog](#-changelog)
+
+<details id="frequencywordstxt-configuration">
+<summary><strong>👉 Click to expand: frequency_words.txt Configuration</strong></summary>
+<br>
+
+Configure monitoring keywords in `frequency_words.txt` with three syntax types and grouping features.
+
+Keywords at the top have higher priority. Adjust keyword order based on your interests.
+
+| Syntax Type | Symbol | Purpose | Example | Matching Logic |
+|------------|--------|---------|---------|----------------|
+| **Normal** | None | Basic matching | `Huawei` | Match any one |
+| **Required** | `+` | Scope limiting | `+phone` | Must include both |
+| **Filter** | `!` | Noise exclusion | `!ad` | Exclude if included |
+
+### 📋 Basic Syntax
+
+#### 1. **Normal Keywords** - Basic Matching
+```txt
+Huawei
+OPPO
+Apple
+```
+**Effect:** News containing **any one** of these words will be captured
+
+#### 2. **Required Words** `+word` - Scope Limiting
+```txt
+Huawei
+OPPO
++phone
+```
+**Effect:** Must include both normal word **and** required word to be captured
+
+#### 3. **Filter Words** `!word` - Noise Exclusion
+```txt
+Apple
+Huawei
+!fruit
+!price
+```
+**Effect:** News containing filter words will be **excluded**, even if it contains keywords
+
+### 🔗 Group Feature - Importance of Empty Lines
+
+**Core Rule:** Use **empty lines** to separate different groups, each group is independently counted
+
+#### Example Configuration:
+```txt
+iPhone
+Huawei
+OPPO
++launch
+
+A-shares
+Shanghai Index
+Shenzhen Index
++fluctuation
+!prediction
+
+World Cup
+Euro Cup
+Asian Cup
++match
+```
+
+#### Group Explanation and Matching Effects:
+
+**Group 1 - Phone Launches:**
+- Keywords: iPhone, Huawei, OPPO
+- Required: launch
+- Effect: Must include phone brand name and "launch"
+
+**Matching Examples:**
+- ✅ "iPhone 15 officially launched with pricing" ← Has "iPhone" + "launch"
+- ✅ "Huawei Mate60 series launch livestream" ← Has "Huawei" + "launch"
+- ✅ "OPPO Find X7 launch date confirmed" ← Has "OPPO" + "launch"
+- ❌ "iPhone sales hit record high" ← Has "iPhone" but missing "launch"
+
+**Group 2 - Stock Market:**
+- Keywords: A-shares, Shanghai Index, Shenzhen Index
+- Required: fluctuation
+- Filter: prediction
+- Effect: Include stock-related words and "fluctuation", but exclude "prediction"
+
+**Matching Examples:**
+- ✅ "A-shares major fluctuation analysis today" ← Has "A-shares" + "fluctuation"
+- ✅ "Shanghai Index fluctuation reasons explained" ← Has "Shanghai Index" + "fluctuation"
+- ❌ "Experts predict A-shares fluctuation trends" ← Has "A-shares" + "fluctuation" but contains "prediction"
+- ❌ "A-shares trading volume hits new high" ← Has "A-shares" but missing "fluctuation"
+
+**Group 3 - Football Events:**
+- Keywords: World Cup, Euro Cup, Asian Cup
+- Required: match
+- Effect: Must include cup name and "match"
+
+**Matching Examples:**
+- ✅ "World Cup group stage match results" ← Has "World Cup" + "match"
+- ✅ "Euro Cup final match time" ← Has "Euro Cup" + "match"
+- ❌ "World Cup tickets on sale" ← Has "World Cup" but missing "match"
+
+### 🎯 Configuration Tips
+
+#### 1. **From Broad to Strict Strategy**
+```txt
+# Step 1: Start with broad keywords for testing
+Artificial Intelligence
+AI
+ChatGPT
+
+# Step 2: After finding mismatches, add required words
+Artificial Intelligence
+AI
+ChatGPT
++technology
+
+# Step 3: After finding noise, add filter words
+Artificial Intelligence
+AI
+ChatGPT
++technology
+!advertisement
+!training
+```
+
+#### 2. **Avoid Over-Complexity**
+❌ **Not Recommended:** Too many words in one group
+```txt
+Huawei
+OPPO
+Apple
+Samsung
+vivo
+OnePlus
+Meizu
++phone
++launch
++sales
+!fake
+!repair
+!second-hand
+```
+
+✅ **Recommended:** Split into precise groups
+```txt
+Huawei
+OPPO
++new product
+
+Apple
+Samsung
++launch
+
+phone
+sales
++market
+```
+
+</details>
+
+
+### **Trending Analysis**
+
+Real-time tracking of news popularity changes helps you understand not just "what's trending" but "how trends evolve."
+
+- **Timeline Tracking**: Records complete time span from first to last appearance
+- **Popularity Changes**: Tracks ranking changes and appearance frequency across time periods
+- **New Detection**: Real-time identification of emerging topics, marked with 🆕
+- **Continuity Analysis**: Distinguishes between one-time hot topics and continuously developing news
+- **Cross-Platform Comparison**: Same news across different platforms, showing media attention differences
+
+> Never miss the complete development of important news, from topic emergence to peak discussion
+
+<details>
+<summary><strong>👉 Click to expand: Push Format Explanation</strong></summary>
+<br>
+
+📊 Trending Keywords Stats
+
+🔥 [1/3] AI ChatGPT : 2 items
+
+  1. [Baidu Hot] 🆕 ChatGPT-5 officially launched [**1**] - 09:15 (1 time)
+
+  2. [Toutiao] AI chip concept stocks surge [**3**] - [08:30 ~ 10:45] (3 times)
+
+━━━━━━━━━━━━━━━━━━━
+
+📈 [2/3] BYD Tesla : 2 items
+
+  1. [Weibo] 🆕 BYD monthly sales break record [**2**] - 10:20 (1 time)
+
+  2. [Douyin] Tesla price reduction promotion [**4**] - [07:45 ~ 09:15] (2 times)
+
+━━━━━━━━━━━━━━━━━━━
+
+📌 [3/3] A-shares Stock Market : 1 item
+
+  1. [Wallstreetcn] A-shares midday review [**5**] - [11:30 ~ 12:00] (2 times)
+
+🆕 New Trending News (Total 2 items)
+
+**Baidu Hot** (1 item):
+  1. ChatGPT-5 officially launched [**1**]
+
+**Weibo** (1 item):
+  1. BYD monthly sales break record [**2**]
+
+Updated: 2025-01-15 12:30:15
+
+
+## **Message Format Explanation**
+
+| Format Element | Example | Meaning | Description |
+| ------------- | ------- | -------- | ----------- |
+| 🔥📈📌 | 🔥 [1/3] AI ChatGPT | Popularity Level | 🔥 High (≥10) 📈 Medium (5-9) 📌 Normal (<5) |
+| [Number/Total] | [1/3] | Rank Position | Current group rank among all matches |
+| Keyword Group | AI ChatGPT | Keyword Group | Group from config, title must contain words |
+| : N items | : 2 items | Match Count | Total news matching this group |
+| [Platform] | [Baidu Hot] | Source Platform | Platform name of the news |
+| 🆕 | 🆕 ChatGPT-5 officially launched | New Mark | First appearance in this round |
+| [**number**] | [**1**] | High Rank | Rank ≤ threshold, bold red display |
+| [number] | [7] | Normal Rank | Rank > threshold, normal display |
+| - time | - 09:15 | First Time | Time when news was first discovered |
+| [time~time] | [08:30 ~ 10:45] | Duration | Time range from first to last appearance |
+| (N times) | (3 times) | Frequency | Total appearances during monitoring |
+| **New Section** | 🆕 **New Trending News** | New Topic Summary | Separately shows newly appeared topics |
+
+</details>
+
+
+### **Personalized Trending Algorithm**
+
+No longer controlled by platform algorithms, TrendRadar reorganizes all trending searches:
+
+- **Prioritize High-Ranking News** (60%): Top-ranked news from each platform appears first
+- **Focus on Persistent Topics** (30%): Repeatedly appearing news is more important
+- **Consider Ranking Quality** (10%): Not just frequent, but consistently top-ranked
+
+> Merge trending searches from各 platforms and re-sort by your interests. These three ratios can be adjusted for your scenarios.
+
+<details>
+<summary><strong>👉 Click to expand: Trending Weight Adjustment</strong></summary>
+<br>
+
+Current default configuration is balanced.
+
+### Two Core Scenarios
+
+**Real-Time Trending Type**:
+```yaml
+weight:
+  rank_weight: 0.8    # Mainly focus on ranking
+  frequency_weight: 0.1  # Less concern about continuity
+  hotness_weight: 0.1
+```
+**Target Users**: Content creators, marketers, users wanting to quickly understand current hot topics
+
+**In-Depth Topic Type**:
+```yaml
+weight:
+  rank_weight: 0.4    # Moderate ranking focus
+  frequency_weight: 0.5  # Emphasize sustained heat within the day
+  hotness_weight: 0.1
+```
+**Target Users**: Investors, researchers, journalists, users needing deep trend analysis
+
+### Adjustment Method
+1. **Three numbers must sum to 1.0**
+2. **Increase what's important**: Increase rank_weight for rankings, frequency_weight for continuity
+3. **Suggest adjusting 0.1-0.2 at a time**, observe effects
+
+Core idea: Users pursuing speed and timeliness increase ranking weight, users pursuing depth and stability increase frequency weight.
+
+</details>
+
+### **Multi-Channel Real-Time Push**
+
+Supports **WeWork** (+ WeChat push solution), **Feishu**, **DingTalk**, **Telegram**, **Email**, **ntfy** — messages delivered directly to phone and email.
+
+### **Multi-Platform Support**
+- **GitHub Pages**: Auto-generate beautiful web reports, PC/mobile adapted
+- **Docker Deployment**: Supports multi-architecture containerized operation
+- **Data Persistence**: HTML/TXT multi-format history saving
+
+
+### **AI Smart Analysis (v3.0.0 New)**
+
+AI conversational analysis system based on MCP (Model Context Protocol), enabling deep data mining with natural language.
+
+- **Conversational Query**: Ask in natural language, like "Query yesterday's Zhihu trending" or "Analyze recent Bitcoin popularity trends"
+- **13 Analysis Tools**: Basic query, smart search, trend analysis, data insights, sentiment analysis, etc.
+- **Multi-Client Support**: Cherry Studio (GUI config), Claude Desktop, Cursor, Cline, etc.
+- **Deep Analysis Capabilities**:
+  - Topic trend tracking (popularity changes, lifecycle, viral detection, trend prediction)
+  - Cross-platform data comparison (activity stats, keyword co-occurrence)
+  - Smart summary generation, similar news finding, historical correlation search
+
+> No more manual data file browsing—AI assistant helps you understand the stories behind the news in seconds
+
+### **Zero Technical Barrier Deployment**
+
+One-click GitHub Fork to use, no programming required.
+
+> 30-second deployment: GitHub Pages (web browsing) supports one-click save as image for easy sharing
+>
+> 1-minute deployment: WeWork (mobile notification)
+
+**💡 Tip:** Want a **real-time updated** web version? After forking, go to your repo Settings → Pages and enable GitHub Pages. [Preview Effect](https://sansan0.github.io/TrendRadar/).
+
+### **Reduce APP Dependencies**
+
+Transform from "algorithm recommendation captivity" to "actively getting the information you want"
+
+**Target Users:** Investors, content creators, PR professionals, news-conscious general users
+
+**Typical Scenarios:** Stock investment monitoring, brand sentiment tracking, industry trend watching, lifestyle news gathering
+
+
+| Github Pages Effect (Mobile Adapted, Email Push) | Feishu Push Effect |
+|:---:|:---:|
+| ![Github Pages Effect](_image/github-pages.png) | ![Feishu Push Effect](_image/feishu.jpg) |
+
+
+## 📝 Changelog
+
+>**Upgrade Instructions**:
+- **Tip**: Do NOT update this project via **Sync fork**. Check [Changelog](#changelog) to understand specific [Upgrade Methods] and [Features]
+- **Minor Version Update**: Upgrading from v2.x to v2.y, replace `main.py` in your forked repo with the latest version
+- **Major Version Upgrade**: Upgrading from v1.x to v2.y, recommend deleting existing fork and re-forking to save effort and avoid config conflicts
+
+
+### 2025/11/12 - v3.0.5
+
+- Fixed email sending SSL/TLS port configuration logic error
+- Optimized email service providers (QQ/163/126) to default use port 465 (SSL)
+- **Added Docker environment variable support**: Core config items (`enable_crawler`, `report_mode`, `push_window`, etc.) support override via environment variables, solving config file modification issues for NAS users (see [🐳 Docker Deployment](#-docker-deployment) chapter)
+
+
+
+### 2025/11/18 - mcp-v1.0.2
+
+  **MCP Module Update:**
+  - Fix issue where today's news query may return articles from past dates
+
+
+<details>
+<summary><strong>👉 Click to expand: Historical Updates</strong></summary>
+
+### 2025/10/26 - mcp-v1.0.1
+
+  **MCP Module Update:**
+  - Fixed date query parameter passing error
+  - Unified time parameter format for all tools
+
+
+### 2025/10/31 - v3.0.4
+
+- Solved Feishu error due to overly long push content, implemented batch pushing
+
+
+### 2025/10/23 - v3.0.3
+
+- Expanded ntfy error message display range
+
+
+### 2025/10/21 - v3.0.2
+
+- Fixed ntfy push encoding issue
+
+### 2025/10/20 - v3.0.0
+
+**Major Update - AI Analysis Feature Launched** 🤖
+
+- **Core Features**:
+  - New MCP (Model Context Protocol) based AI analysis server
+  - 13 smart analysis tools: basic query, smart search, advanced analysis, system management
+  - Natural language interaction: Query and analyze news data through conversation
+  - Multi-client support: Claude Desktop, Cherry Studio, Cursor, Cline, etc.
+
+- **Analysis Capabilities**:
+  - Topic trend analysis (popularity tracking, lifecycle, viral detection, trend prediction)
+  - Data insights (platform comparison, activity stats, keyword co-occurrence)
+  - Sentiment analysis, similar news finding, smart summary generation
+  - Historical related news search, multi-mode search
+
+- **Update Note**:
+  - This is an independent AI analysis feature, does not affect existing push functionality
+  - Optional use, no need to upgrade existing deployment
+
+
+### 2025/10/15 - v2.4.4
+
+- **Updates**:
+  - Fixed ntfy push encoding issue + 1
+  - Fixed push time window judgment issue
+
+- **Upgrade Note**:
+  - Recommended minor version upgrade
+
+
+### 2025/10/10 - v2.4.3
+
+> Thanks to [nidaye996](https://github.com/sansan0/TrendRadar/issues/98) for discovering the UX issue
+
+- **Updates**:
+  - Refactored "Silent Push Mode" naming to "Push Time Window Control", improving feature comprehension
+  - Clarified push time window as optional additional feature, can work with three push modes
+  - Improved comments and documentation, making feature positioning clearer
+
+- **Upgrade Note**:
+  - This is just refactoring, upgrade optional
+
+
+### 2025/10/8 - v2.4.2
+
+- **Updates**:
+  - Fixed ntfy push encoding issue
+  - Fixed missing config file issue
+  - Optimized ntfy push effect
+  - Added GitHub Pages image segmented export feature
+
+- **Upgrade Note**:
+  - Recommend major version update
+
+
+### 2025/10/2 - v2.4.0
+
+**Added ntfy Push Notification**
+
+- **Core Features**:
+  - Supports ntfy.sh public service and self-hosted servers
+
+- **Use Cases**:
+  - Suitable for privacy-conscious users (supports self-hosting)
+  - Cross-platform push (iOS, Android, Desktop, Web)
+  - No account registration needed (public servers)
+  - Open-source and free (MIT License)
+
+- **Upgrade Note**:
+  - Recommend major version update
+
+
+### 2025/09/26 - v2.3.2
+
+- Fixed email notification config check being missed ([#88](https://github.com/sansan0/TrendRadar/issues/88))
+
+**Fix Description**:
+- Solved the issue where system still prompted "No webhook configured" even with correct email notification setup
+
+
+### 2025/09/22 - v2.3.1
+
+- **Added email push feature**, supports sending trending news reports to email
+- **Smart SMTP Recognition**: Auto-detects Gmail, QQ Mail, Outlook, NetEase Mail and 10+ email service providers
+- **Beautiful HTML Format**: Email content uses same HTML format as web version, well-formatted, mobile-adapted
+- **Batch Sending Support**: Supports multiple recipients, separated by commas
+- **Custom SMTP**: Can customize SMTP server and port
+- Fixed Docker build network connection issue
+
+**Usage Notes**:
+- Use cases: Suitable for users needing email archiving, team sharing, scheduled reports
+- Supported emails: Gmail, QQ Mail, Outlook/Hotmail, 163/126 Mail, Sina Mail, Sohu Mail, etc.
+
+**Upgrade Note**:
+- This update has many changes, if upgrading, recommend major version upgrade
+
+
+### 2025/09/17 - v2.2.0
+
+- Added one-click save news as image feature, easily share trending topics you care about
+
+**Usage Notes**:
+- Use case: After enabling web version feature (GitHub Pages)
+- How to use: Open webpage on phone or PC, click "Save as Image" button at top
+- Actual effect: System auto-creates beautiful image of current news report, saves to phone album or desktop
+- Sharing convenience: Directly send this image to friends, Moments, or work groups, letting others see your discovered important info
+
+
+### 2025/09/13 - v2.1.2
+
+- Solved DingTalk push capacity limit causing news push failure (using batch push)
+
+
+### 2025/09/04 - v2.1.1
+
+- Fixed Docker unable to run properly on certain architectures
+- Officially released official Docker image wantcat/trendradar, supports multi-architecture
+- Optimized Docker deployment process, can use quickly without local build
+
+
+### 2025/08/30 - v2.1.0
+
+**Core Improvements**:
+- **Push Logic Optimization**: Changed from "push every execution" to "controllable push within time window"
+- **Time Window Control**: Can set push time range, avoid non-work hour disturbance
+- **Push Frequency Options**: Supports single push or multiple pushes within time window
+
+**Upgrade Note**:
+- This feature is disabled by default, need to manually enable push time window control in config.yaml
+- Upgrade requires updating both main.py and config.yaml files
+
+
+### 2025/08/27 - v2.0.4
+
+- This version is not a bug fix, but an important reminder
+- Please keep webhooks properly, do not make public, do not make public, do not make public
+- If you deployed this project on GitHub via fork, please put webhooks in GitHub Secret, not config.yaml
+- If you already exposed webhooks or put them in config.yaml, suggest deleting and regenerating
+
+
+### 2025/08/06 - v2.0.3
+
+- Optimized GitHub Pages web version effect, convenient for mobile use
+
+
+### 2025/07/28 - v2.0.2
+
+- Refactored code
+- Solved version number easily being missed for modification
+
+
+### 2025/07/27 - v2.0.1
+
+**Fixed Issues**:
+
+1. Docker shell script line ending as CRLF causing execution exception issue
+2. frequency_words.txt being empty causing news sending also empty logic issue
+  - After fix, when you choose frequency_words.txt empty, will **push all news**, but limited by message push size, please adjust as follows
+    - Option 1: Turn off mobile push, only choose GitHub Pages deployment (this is the way to get most complete info, will re-sort all platform trending by your **custom trending algorithm**)
+    - Option 2: Reduce push platforms, prioritize **WeWork** or **Telegram**, these two pushes I made batch push feature (because batch push affects push experience, and only these two platforms give very little push capacity, so had to make batch push feature, but at least can ensure complete info)
+    - Option 3: Can combine with Option 2, mode choose current or incremental can effectively reduce one-time push content
+
+
+### 2025/07/17 - v2.0.0
+
+**Major Refactoring**:
+- Config management refactoring: All configs now managed through `config/config.yaml` file (main.py I still didn't split, convenient for you to copy and upgrade)
+- Run mode upgrade: Supports three modes - `daily` (daily summary), `current` (current rankings), `incremental` (incremental monitoring)
+- Docker support: Complete Docker deployment solution, supports containerized operation
+
+**Config File Description**:
+- `config/config.yaml` - Main config file (application settings, crawler config, notification config, platform config, etc.)
+- `config/frequency_words.txt` - Keyword config (monitoring vocabulary settings)
+
+
+### 2025/07/09 - v1.4.1
+
+**New Feature**: Added incremental push (configure FOCUS_NEW_ONLY at top of main.py), this switch only cares about new topics not sustained heat, only sends notification when new content appears.
+
+**Fixed Issue**: Under certain circumstances, some news containing special symbols caused occasional formatting exceptions.
+
+
+### 2025/06/23 - v1.3.0
+
+WeWork and Telegram push messages have length limits, I adopted splitting messages for pushing. Development docs see [WeWork](https://developer.work.weixin.qq.com/document/path/91770) and [Telegram](https://core.telegram.org/bots/api)
+
+
+### 2025/06/21 - v1.2.1
+
+Before this version, not only main.py needs copy replacement, crawler.yml also needs you to copy replacement
+https://github.com/sansan0/TrendRadar/blob/master/.github/workflows/crawler.yml
+
+
+### 2025/06/19 - v1.2.0
+
+> Thanks to Claude Research for organizing various platform APIs, helping me quickly complete platform adaptation (although code is more redundant~
+
+1. Supports Telegram, WeWork, DingTalk push channels, supports multi-channel config and simultaneous push
+
+
+### 2025/06/18 - v1.1.0
+
+> **200 stars⭐** reached, continue celebrating with everyone~
+
+1. Important update, added weight, news you see now is hottest most concerned appearing at top
+2. Updated documentation usage, because recently updated many features, and previous usage docs I was lazy wrote simple (see ⚙️ frequency_words.txt complete configuration tutorial below)
+
+
+### 2025/06/16 - v1.0.0
+
+1. Added project new version update reminder, default on, if want to turn off, can change "FEISHU_SHOW_VERSION_UPDATE": True to False in main.py
+
+
+### 2025/06/13+14
+
+1. Removed compatibility code, students who forked before, directly copying code will show exception on same day (will recover normal next day)
+2. Feishu and html bottom added new news display
+
+
+### 2025/06/09
+
+**100 stars⭐** reached, writing small feature to celebrate
+
+frequency_words.txt file added **required word** feature, using + sign
+
+1. Required word syntax as follows:
+   Tang Monk or Pig must both appear in title, will be included in push news
+
+```
++Tang Monk
++Pig
+```
+
+2. Filter word priority higher:
+   If title filter word matches Tang Monk reciting sutras, then even if required word has Tang Monk, also not display
+
+```
++Tang Monk
+!Tang Monk reciting sutras
+```
+
+
+### 2025/06/02
+
+1. **Webpage** and **Feishu messages** support phone directly jumping to detailed news
+2. Optimized display effect + 1
+
+
+### 2025/05/26
+
+1. Feishu message display effect optimized
+
+</details>
+
+
+## 🚀 Quick Start
+
+> After configuration, news data updates after one hour. To accelerate, refer to [Step 4] to manually test configuration
+
+1. **Fork this project** to your GitHub account
+
+   - Click the "Fork" button at the top right of this page
+
+2. **Setup GitHub Secrets (Choose your needed platforms)**:
+
+   In your forked repo, go to `Settings` > `Secrets and variables` > `Actions` > `New repository secret`, then configure one or more notification platforms as needed:
+
+   You can configure multiple platforms simultaneously, system will send notifications to all configured platforms.
+
+   Effect similar to the image below, one name corresponds to one secret. After saving, you won't see the secret value when re-editing, which is normal.
+
+   <img src="_image/secrets.png" alt="GitHub Secrets"/>
+
+
+   <details>
+   <summary> <strong>👉 Click to expand: WeWork Bot</strong> (Simplest and fastest configuration)</summary>
+   <br>
+
+   **GitHub Secret Configuration:**
+   - Name: `WEWORK_WEBHOOK_URL`
+   - Value: Your WeWork bot Webhook address
+
+   <br>
+
+   **Bot Setup Steps:**
+
+   #### Mobile Setup:
+   1. Open WeWork App → Enter target internal group chat
+   2. Click "…" button at top right → Select "Message Push"
+   3. Click "Add" → Name input "TrendRadar"
+   4. Copy Webhook address, click save, paste the copied content into GitHub Secret above
+
+   #### PC Setup Process Similar
+   </details>
+
+   <details>
+   <summary> <strong>👉 Click to expand: Feishu Bot</strong> (Most user-friendly message display)</summary>
+   <br>
+
+   **GitHub Secret Configuration:**
+   - Name: `FEISHU_WEBHOOK_URL`
+   - Value: Your Feishu bot Webhook address (link starts with https://www.feishu.cn/flow/api/trigger-webhook/********)
+   <br>
+
+   Two methods available, **Method 1** is simpler, **Method 2** is more complex (but stable push)
+
+   Method 1 discovered and suggested by **ziventian**, thanks to them. Default is personal push, group push can be configured via [#97](https://github.com/sansan0/TrendRadar/issues/97)
+
+   **Method 1:**
+
+   > For some users, additional operations needed to avoid "System Error". Need to search for the bot on mobile and enable Feishu bot application (suggestion from community, can refer)
+
+   1. Open in PC browser https://botbuilder.feishu.cn/home/my-command
+
+   2. Click "New Bot Command"
+
+   3. Click "Select Trigger", scroll down, click "Webhook Trigger"
+
+   4. Now you'll see "Webhook Address", copy this link to local notepad temporarily, continue with next steps
+
+   5. In "Parameters" put the following content, then click "Done"
+
+   ```json
+   {
+     "message_type": "text",
+     "content": {
+       "total_titles": "{{Content}}",
+       "timestamp": "{{Content}}",
+       "report_type": "{{Content}}",
+       "text": "{{Content}}"
+     }
+   }
+   ```
+
+   6. Click "Select Action" > "Send via Official Bot"
+
+   7. Message title fill "TrendRadar Trending Monitor"
+
+   8. Most critical part, click + button, select "Webhook Trigger", then arrange as shown in image
+
+   ![Feishu Bot Config Example](_image/image.png)
+
+   9. After configuration, put Webhook address from step 4 into GitHub Secrets `FEISHU_WEBHOOK_URL`
+
+   <br>
+
+   **Method 2:** (See Chinese version for detailed steps)
+
+   </details>
+
+   <details>
+   <summary> <strong>👉 Click to expand: DingTalk Bot</strong></summary>
+   <br>
+
+   **GitHub Secret Configuration:**
+   - Name: `DINGTALK_WEBHOOK_URL`
+   - Value: Your DingTalk bot Webhook address
+
+   <br>
+
+   **Bot Setup Steps:**
+
+   1. **Create Bot (PC Only)**:
+      - Open DingTalk PC client, enter target group chat
+      - Click group settings icon (⚙️) → Scroll down to find "Bot" and click
+      - Select "Add Bot" → "Custom"
+
+   2. **Configure Bot**:
+      - Set bot name
+      - **Security Settings**:
+        - **Custom Keywords**: Set "Trending" or "热点"
+
+   3. **Complete Setup**:
+      - Check service terms agreement → Click "Done"
+      - Copy the obtained Webhook URL
+      - Put URL into GitHub Secrets `DINGTALK_WEBHOOK_URL`
+
+   **Note**: Mobile can only receive messages, cannot create new bots.
+   </details>
+
+   <details>
+   <summary> <strong>👉 Click to expand: Telegram Bot</strong></summary>
+   <br>
+
+   **GitHub Secret Configuration:**
+   - Name: `TELEGRAM_BOT_TOKEN` - Your Telegram Bot Token
+   - Name: `TELEGRAM_CHAT_ID` - Your Telegram Chat ID
+
+   <br>
+
+   **Bot Setup Steps:**
+
+   1. **Create Bot**:
+      - Search `@BotFather` in Telegram (note case, has blue verification checkmark, shows ~37849827 monthly users, this is official, beware of fake accounts)
+      - Send `/newbot` command to create new bot
+      - Set bot name (must end with "bot", easily runs into duplicate names, so think creatively)
+      - Get Bot Token (format like: `123456789:AAHfiqksKZ8WmR2zSjiQ7_v4TMAKdiHm9T0`)
+
+   2. **Get Chat ID**:
+
+      **Method 1: Via Official API**
+      - First send a message to your bot
+      - Visit: `https://api.telegram.org/bot<Your Bot Token>/getUpdates`
+      - Find the number in `"chat":{"id":number}` in returned JSON
+
+      **Method 2: Using Third-Party Tool**
+      - Search `@userinfobot` and send `/start`
+      - Get your user ID as Chat ID
+
+   3. **Configure to GitHub**:
+      - `TELEGRAM_BOT_TOKEN`: Fill in Bot Token from step 1
+      - `TELEGRAM_CHAT_ID`: Fill in Chat ID from step 2
+   </details>
+
+   <details>
+   <summary> <strong>👉 Click to expand: Email Push</strong> (Supports all mainstream email providers)</summary>
+   <br>
+
+   - Note: To prevent email bulk sending abuse, current bulk sending allows all recipients to see each other's email addresses.
+   - If you haven't configured email sending before, not recommended to try
+
+   <br>
+
+   **GitHub Secret Configuration:**
+   - Name: `EMAIL_FROM` - Sender email address
+   - Name: `EMAIL_PASSWORD` - Email password or authorization code
+   - Name: `EMAIL_TO` - Recipient email address (multiple separated by comma) or can be same as EMAIL_FROM, send to yourself
+   - Name: `EMAIL_SMTP_SERVER` - SMTP server address (optional, auto-detect if empty)
+   - Name: `EMAIL_SMTP_PORT` - SMTP port (optional, auto-detect if empty)
+
+   <br>
+
+   **Supported Email Providers** (Auto-detect SMTP config):
+
+   | Provider | Domain | SMTP Server | Port | Encryption |
+   |----------|--------|-------------|------|-----------|
+   | **Gmail** | gmail.com | smtp.gmail.com | 587 | TLS |
+   | **QQ Mail** | qq.com | smtp.qq.com | 465 | SSL |
+   | **Outlook** | outlook.com | smtp-mail.outlook.com | 587 | TLS |
+   | **Hotmail** | hotmail.com | smtp-mail.outlook.com | 587 | TLS |
+   | **Live** | live.com | smtp-mail.outlook.com | 587 | TLS |
+   | **163 Mail** | 163.com | smtp.163.com | 465 | SSL |
+   | **126 Mail** | 126.com | smtp.126.com | 465 | SSL |
+   | **Sina Mail** | sina.com | smtp.sina.com | 465 | SSL |
+   | **Sohu Mail** | sohu.com | smtp.sohu.com | 465 | SSL |
+
+   > **Auto-detect**: When using above emails, no need to manually configure `EMAIL_SMTP_SERVER` and `EMAIL_SMTP_PORT`, system auto-detects.
+
+   **Common Email Settings:**
+
+   #### QQ Mail:
+   1. Login QQ Mail web version → Settings → Account
+   2. Enable POP3/SMTP service
+   3. Generate authorization code (16-letter code)
+   4. `EMAIL_PASSWORD` fill authorization code, not QQ password
+
+   #### Gmail:
+   1. Enable two-step verification
+   2. Generate app-specific password
+   3. `EMAIL_PASSWORD` fill app-specific password
+
+   #### 163/126 Mail:
+   1. Login web version → Settings → POP3/SMTP/IMAP
+   2. Enable SMTP service
+   3. Set client authorization code
+   4. `EMAIL_PASSWORD` fill authorization code
+   <br>
+
+   **Advanced Configuration**:
+   If auto-detect fails, manually configure SMTP:
+   - `EMAIL_SMTP_SERVER`: Like smtp.gmail.com
+   - `EMAIL_SMTP_PORT`: Like 587 (TLS) or 465 (SSL)
+   <br>
+
+   **Multiple Recipients (note: English comma separator)**:
+   - EMAIL_TO="user1@example.com,user2@example.com,user3@example.com"
+
+   </details>
+
+   <details>
+   <summary> <strong>👉 Click to expand: ntfy Push</strong> (Open-source, free, self-hostable)</summary>
+   <br>
+
+   **Two Usage Methods:**
+
+   ### Method 1: Free Use (Recommended for Beginners) 🆓
+
+   **Features**:
+   - ✅ No account registration, use immediately
+   - ✅ 250 messages/day (enough for 90% users)
+   - ✅ Topic name is "password" (need to choose hard-to-guess name)
+   - ⚠️ Messages unencrypted, not for sensitive info, but suitable for our non-sensitive project info
+
+   **Quick Start:**
+
+   1. **Download ntfy App**:
+      - Android: [Google Play](https://play.google.com/store/apps/details?id=io.heckel.ntfy) / [F-Droid](https://f-droid.org/en/packages/io.heckel.ntfy/)
+      - iOS: [App Store](https://apps.apple.com/us/app/ntfy/id1625396347)
+      - Desktop: Visit [ntfy.sh](https://ntfy.sh)
+
+   2. **Subscribe to Topic** (choose a hard-to-guess name):
+      ```
+      Suggested format: trendradar-{your initials}-{random numbers}
+
+      Cannot use Chinese
+
+      ✅ Good example: trendradar-zs-8492
+      ❌ Bad example: news, alerts (too easy to guess)
+      ```
+
+   3. **Configure GitHub Secret**:
+      - `NTFY_TOPIC`: Fill in your subscribed topic name
+      - `NTFY_SERVER_URL`: Leave empty (default uses ntfy.sh)
+      - `NTFY_TOKEN`: Leave empty
+
+   4. **Test**:
+      ```bash
+      curl -d "Test message" ntfy.sh/your-topic-name
+      ```
+
+   ---
+
+   ### Method 2: Self-Hosting (Complete Privacy Control) 🔒
+
+   **Target Users**: Have server, pursue complete privacy, strong technical ability
+
+   **Advantages**:
+   - ✅ Completely open-source (Apache 2.0 + GPLv2)
+   - ✅ Complete data self-control
+   - ✅ No restrictions
+   - ✅ Zero cost
+
+   **Docker One-Click Deploy**:
+   ```bash
+   docker run -d \
+     --name ntfy \
+     -p 80:80 \
+     -v /var/cache/ntfy:/var/cache/ntfy \
+     binwiederhier/ntfy \
+     serve --cache-file /var/cache/ntfy/cache.db
+   ```
+
+   **Configure TrendRadar**:
+   ```yaml
+   NTFY_SERVER_URL: https://ntfy.yourdomain.com
+   NTFY_TOPIC: trendradar-alerts  # Self-hosting can use simple name
+   NTFY_TOKEN: tk_your_token  # Optional: Enable access control
+   ```
+
+   **Subscribe in App**:
+   - Click "Use another server"
+   - Enter your server address
+   - Enter topic name
+   - (Optional) Enter login credentials
+
+   ---
+
+   **FAQ:**
+
+   <details>
+   <summary><strong>Q1: Is the free version enough?</strong></summary>
+
+   250 messages/day is enough for most users. With 30-minute crawl intervals, about 48 pushes/day, completely sufficient.
+   </details>
+
+   <details>
+   <summary><strong>Q2: Is the Topic name really secure?</strong></summary>
+
+   If you choose a random, sufficiently long name (like `trendradar-zs-8492-news`), brute force is nearly impossible:
+   - ntfy has strict rate limiting (1 request/second)
+   - 64 character choices (A-Z, a-z, 0-9, _, -)
+   - 10 random characters have 64^10 possibilities (would take years to crack)
+   </details>
+
+   ---
+
+   **Recommended Choice:**
+
+   | User Type | Recommended | Reason |
+   |-----------|-------------|--------|
+   | Regular Users | Method 1 (Free) | Simple, fast, enough |
+   | Technical Users | Method 2 (Self-Host) | Complete control, unlimited |
+   | High-Frequency Users | Method 3 (Paid) | Check official website |
+
+   **Related Links:**
+   - [ntfy Official Docs](https://docs.ntfy.sh/)
+   - [Self-Hosting Tutorial](https://docs.ntfy.sh/install/)
+   - [GitHub Repository](https://github.com/binwiederhier/ntfy)
+
+   </details>
+
+   > **💡 Beginner Quick Start Tip**:
+   >
+   > For first deployment, suggest completing **GitHub Secrets** configuration first (choose one push platform), then jump to [Step 4] to test push success.
+   >
+   > **Don't modify** `config/config.yaml` and `frequency_words.txt` temporarily, adjust these configs after push test succeeds as needed.
+
+
+3. **Configuration Notes:**:
+
+    - **Push Settings**: Configure push mode and notification options in [config/config.yaml](config/config.yaml)
+    - **Keyword Settings**: Add your interested keywords in [config/frequency_words.txt](config/frequency_words.txt)
+    - **Push Frequency Adjustment**: In [.github/workflows/crawler.yml](.github/workflows/crawler.yml) adjust carefully, don't be greedy
+
+    **Note**: Suggest only adjusting explicitly documented config items, other options mainly for author's development testing
+
+4. **Manual Test News Push**:
+
+    Using my project as example, you should test in **your forked** project
+
+    1. **Enter Actions**: https://github.com/sansan0/TrendRadar/actions
+    2. Find "Hot News Crawler" and click in. If you don't see this text, refer to [#109](https://github.com/sansan0/TrendRadar/issues/109) to solve
+    3. Click "Run workflow" button to run, wait about 1 minute for data to arrive on your phone
+
+
+## 🐳 Docker Deployment
+
+#### Method 1: Quick Experience (One-Line Command)
+
+**Linux/macOS System:**
+```bash
+# Create config directory and download config files
+mkdir -p config output
+wget https://raw.githubusercontent.com/sansan0/TrendRadar/master/config/config.yaml -P config/
+wget https://raw.githubusercontent.com/sansan0/TrendRadar/master/config/frequency_words.txt -P config/
+```
+Or **Manual Creation**:
+1. Create `config` folder in current directory
+2. Download config files:
+   - Visit https://raw.githubusercontent.com/sansan0/TrendRadar/master/config/config.yaml → Right-click "Save As" → Save to `config\config.yaml`
+   - Visit https://raw.githubusercontent.com/sansan0/TrendRadar/master/config/frequency_words.txt → Right-click "Save As" → Save to `config\frequency_words.txt`
+
+Final directory structure should be:
+```
+current directory/
+└── config/
+    ├── config.yaml
+    └── frequency_words.txt
+```
+
+```bash
+docker run -d --name trend-radar \
+  -v ./config:/app/config:ro \
+  -v ./output:/app/output \
+  -e FEISHU_WEBHOOK_URL="your feishu webhook" \
+  -e DINGTALK_WEBHOOK_URL="your dingtalk webhook" \
+  -e WEWORK_WEBHOOK_URL="your wework webhook" \
+  -e TELEGRAM_BOT_TOKEN="your telegram_bot_token" \
+  -e TELEGRAM_CHAT_ID="your telegram_chat_id" \
+  -e EMAIL_FROM="your sender email" \
+  -e EMAIL_PASSWORD="your email password or auth code" \
+  -e EMAIL_TO="recipient email" \
+  -e CRON_SCHEDULE="*/30 * * * *" \
+  -e RUN_MODE="cron" \
+  -e IMMEDIATE_RUN="true" \
+  wantcat/trendradar:latest
+```
+
+#### Method 2: Using docker-compose (Recommended)
+
+1. **Create Project Directory and Config**:
+   ```bash
+   # Create directory structure
+   mkdir -p trendradar/{config,docker}
+   cd trendradar
+
+   # Download config file templates
+   wget https://raw.githubusercontent.com/sansan0/TrendRadar/master/config/config.yaml -P config/
+   wget https://raw.githubusercontent.com/sansan0/TrendRadar/master/config/frequency_words.txt -P config/
+
+   # Download docker-compose config
+   wget https://raw.githubusercontent.com/sansan0/TrendRadar/master/docker/.env
+   wget https://raw.githubusercontent.com/sansan0/TrendRadar/master/docker/docker-compose.yml
+   ```
+
+Final directory structure should be:
+```
+current directory/
+├── config/
+│   ├── config.yaml
+│   └── frequency_words.txt
+└── docker/
+    ├── .env
+    └── docker-compose.yml
+```
+
+2. **Config File Description**:
+   - `config/config.yaml` - Application main config (report mode, push settings, etc.)
+   - `config/frequency_words.txt` - Keyword config (set your interested trending keywords)
+   - `.env` - Environment variable config (webhook URLs and scheduled tasks)
+
+   **⚙️ Environment Variable Override Mechanism (v3.0.5+)**
+
+   If you encounter **config.yaml modifications not taking effect** in NAS or other Docker environments, you can directly override configs via environment variables:
+
+   | Environment Variable | Corresponding Config | Example Value | Description |
+   |---------------------|---------------------|---------------|-------------|
+   | `ENABLE_CRAWLER` | `crawler.enable_crawler` | `true` / `false` | Enable crawler |
+   | `ENABLE_NOTIFICATION` | `notification.enable_notification` | `true` / `false` | Enable notification |
+   | `REPORT_MODE` | `report.mode` | `daily` / `incremental` / `current`| Report mode |
+   | `PUSH_WINDOW_ENABLED` | `notification.push_window.enabled` | `true` / `false` | Push time window switch |
+   | `PUSH_WINDOW_START` | `notification.push_window.time_range.start` | `08:00` | Push start time |
+   | `PUSH_WINDOW_END` | `notification.push_window.time_range.end` | `22:00` | Push end time |
+   | `FEISHU_WEBHOOK_URL` | `notification.webhooks.feishu_url` | `https://...` | Feishu Webhook |
+
+   **Config Priority**: Environment Variables > config.yaml
+
+   **Usage Method**:
+   - Modify `.env` file, uncomment and fill in needed configs
+   - Or add directly in NAS/Synology Docker management interface's "Environment Variables"
+   - Restart container to take effect: `docker-compose restart`
+
+
+3. **Start Service**:
+   ```bash
+   # Pull latest image and start
+   docker-compose pull
+   docker-compose up -d
+   ```
+
+4. **Check Running Status**:
+   ```bash
+   # View logs
+   docker logs -f trend-radar
+
+   # View container status
+   docker ps | grep trend-radar
+   ```
+
+#### Method 3: Local Build (Developer Option)
+
+If you need custom code modifications or build your own image:
+
+```bash
+# Clone project
+git clone https://github.com/sansan0/TrendRadar.git
+cd TrendRadar
+
+# Modify config files
+vim config/config.yaml
+vim config/frequency_words.txt
+
+# Use build version docker-compose
+cd docker
+cp docker-compose-build.yml docker-compose.yml
+
+# Build and start
+docker-compose build
+docker-compose up -d
+```
+
+#### Image Update
+
+```bash
+# Method 1: Manual update
+docker pull wantcat/trendradar:latest
+docker-compose down
+docker-compose up -d
+
+# Method 2: Using docker-compose update
+docker-compose pull
+docker-compose up -d
+```
+
+#### Service Management Commands
+
+```bash
+# View running status
+docker exec -it trend-radar python manage.py status
+
+# Manually execute crawler once
+docker exec -it trend-radar python manage.py run
+
+# View real-time logs
+docker exec -it trend-radar python manage.py logs
+
+# Display current config
+docker exec -it trend-radar python manage.py config
+
+# Display output files
+docker exec -it trend-radar python manage.py files
+
+# View help info
+docker exec -it trend-radar python manage.py help
+
+# Restart container
+docker restart trend-radar
+
+# Stop container
+docker stop trend-radar
+
+# Remove container (keep data)
+docker rm trend-radar
+```
+
+#### Data Persistence
+
+Generated reports and data are saved in `./output` directory by default. Data persists even if container is restarted or removed.
+
+#### Troubleshooting
+
+```bash
+# Check container status
+docker inspect trend-radar
+
+# View container logs
+docker logs --tail 100 trend-radar
+
+# Enter container for debugging
+docker exec -it trend-radar /bin/bash
+
+# Verify config files
+docker exec -it trend-radar ls -la /app/config/
+```
+
+
+## 🤖 AI Analysis Deployment
+
+TrendRadar v3.0.0 added **MCP (Model Context Protocol)** based AI analysis feature, allowing natural language conversations with news data for deep analysis. Best prerequisite for using **AI features** is running this project for at least one day (accumulate news data).
+
+### 1. Quick Deployment
+
+Cherry Studio provides GUI config interface, 5-minute quick deployment, complex parts are one-click install.
+
+**Illustrated Deployment Tutorial**: Now updated to my WeChat Official Account (see [FAQ & Support](#-faq--support)), reply "mcp" to get
+
+**Detailed Deployment Tutorial**: [README-Cherry-Studio.md](README-Cherry-Studio.md)
+
+### 2. Learning to Talk with AI
+
+**Detailed Conversation Tutorial**: [README-MCP-FAQ.md](README-MCP-FAQ.md)
+
+**Question Effect**:
+
+> Actually not recommended to ask multiple questions at once. If your chosen AI model cannot even sequentially call as shown below, suggest switching models.
+
+<img src="/_image/ai3.png" alt="MCP usage effect" width="600">
+
+
+## 🔌 MCP Clients
+
+TrendRadar MCP service supports standard Model Context Protocol (MCP), can connect to various AI clients supporting MCP for smart analysis.
+
+### Supported Clients
+
+**Note**:
+- Replace `/path/to/TrendRadar` with your actual project path
+- Windows paths use double backslashes: `C:\\Users\\YourName\\TrendRadar`
+- Remember to restart after saving
+
+<details>
+<summary><b>👉 Click to expand: Claude Desktop</b></summary>
+
+#### Config File Method
+
+Edit Claude Desktop's MCP config file:
+
+**Windows**:
+`%APPDATA%\Claude\claude_desktop_config.json`
+
+**Mac**:
+`~/Library/Application Support/Claude/claude_desktop_config.json`
+
+**Config Content**:
+```json
+{
+  "mcpServers": {
+    "trendradar": {
+      "command": "uv",
+      "args": [
+        "--directory",
+        "/path/to/TrendRadar",
+        "run",
+        "python",
+        "-m",
+        "mcp_server.server"
+      ],
+      "env": {},
+      "disabled": false,
+      "alwaysAllow": []
+    }
+  }
+}
+```
+
+</details>
+
+<details>
+<summary><b>👉 Click to expand: Cursor</b></summary>
+
+#### Method 1: HTTP Mode
+
+1. **Start HTTP Service**:
+   ```bash
+   # Windows
+   start-http.bat
+
+   # Mac/Linux
+   ./start-http.sh
+   ```
+
+2. **Configure Cursor**:
+
+   **Project Level Config** (Recommended):
+   Create `.cursor/mcp.json` in project root:
+   ```json
+   {
+     "mcpServers": {
+       "trendradar": {
+         "url": "http://localhost:3333/mcp",
+         "description": "TrendRadar News Trending Aggregation Analysis"
+       }
+     }
+   }
+   ```
+
+   **Global Config**:
+   Create `~/.cursor/mcp.json` in user directory (same content)
+
+3. **Usage Steps**:
+   - Restart Cursor after saving config
+   - Check connected tools in chat interface "Available Tools"
+   - Start using: `Search today's "AI" related news`
+
+#### Method 2: STDIO Mode (Recommended)
+
+Create `.cursor/mcp.json`:
+```json
+{
+  "mcpServers": {
+    "trendradar": {
+      "command": "uv",
+      "args": [
+        "--directory",
+        "/path/to/TrendRadar",
+        "run",
+        "python",
+        "-m",
+        "mcp_server.server"
+      ]
+    }
+  }
+}
+```
+
+</details>
+
+(Additional client configs including VSCode/Cline/Continue, Claude Code CLI, MCP Inspector, and others available in Chinese version)
+
+
+## ☕ FAQ & Support
+
+> If you want to support this project, you can search **Tencent Charity** on WeChat and donate to **Education Support Programs** as you wish~
+>
+> We're anxious about information overload, while they struggle in information deserts without even learning opportunities, so they need support more than me.
+
+<details>
+<summary><b>👉 Click to expand: Author's Note</b></summary>
+<br>
+
+Thanks for all support! Due to sponsor support, the **one-yuan donation** QR code has been removed.
+
+Previous **one-yuan supporters** are listed in the **Acknowledgments** section at the top.
+
+This project's development and maintenance require significant time, effort, and costs (including AI model fees). With sponsorship support, I can maintain it more confidently.
+
+Currently, major AI model prices are relatively affordable. If you don't have a suitable model yet, clicking **302.AI** below also supports the developer:
+
+<div align="center">
+
+<span style="margin-left: 10px"><a href="https://share.302.ai/mEOUzG" target="_blank"><img src="_image/icon-302ai.png" alt="302ai logo" width="100"/></a></span>
+
+</div>
+
+**Usage Process:**
+
+1. After registration and top-up, enter [Management Dashboard](https://302.ai/dashboard/overview) at top right
+2. Click [API Keys](https://302.ai/apis/list) on the left
+3. Find default API KEY at page bottom, click eye icon to view, then copy (Note: don't click the copy button on the far right)
+4. Cherry Studio has integrated 302.AI, just fill in API key to use (currently must fill key first to see complete model list)
+
+If you already have a suitable model, welcome to **register and try**~
+
+</details>
+
+- **GitHub Issues**: Suitable for targeted answers. Please provide complete info when asking (screenshots, error logs, system environment, etc.)
+- **WeChat Official Account**: Suitable for quick consultation. Suggest priority to communicate in public comment area of related articles. If private message, please use polite language 😉
+
+
+<div align="center">
+
+| WeChat Official Account |
+|:---:|
+| <img src="_image/weixin.png" width="400" title="Silicon-based Tea Room"/> |
+
+</div>
+
+## 🪄 Sponsors
+
+> 302.AI is a pay-as-you-go enterprise-level AI resource platform
+> Providing the latest and most comprehensive **AI models** and **APIs** on the market, plus various ready-to-use online AI applications.
+
+
+<div align="center">
+
+<span style="margin-left: 10px"><a href="https://share.302.ai/mEOUzG" target="_blank"><img src="_image/banner-302ai-en.jpg" alt="302ai banner" width="800"/></a>
+
+</div>
+
+
+### Common Questions
+
+<details>
+<summary><b>👉 Click to expand: Q1: HTTP Service Cannot Start?</b></summary>
+<br>
+
+**Check Steps**:
+1. Confirm port 3333 is not occupied:
+   ```bash
+   # Windows
+   netstat -ano | findstr :3333
+
+   # Mac/Linux
+   lsof -i :3333
+   ```
+
+2. Check if project dependencies installed:
+   ```bash
+   # Re-run install script
+   # Windows: setup-windows.bat or setup-windows-en.bat
+   # Mac/Linux: ./setup-mac.sh
+   ```
+
+3. View detailed error logs:
+   ```bash
+   uv run python -m mcp_server.server --transport http --port 3333
+   ```
+4. Try custom port:
+   ```bash
+   uv run python -m mcp_server.server --transport http --port 33333
+   ```
+
+</details>
+
+<details>
+<summary><b>👉 Click to expand: Q2: Client Cannot Connect to MCP Service?</b></summary>
+<br>
+
+**Solutions**:
+
+1. **STDIO Mode**:
+   - Confirm UV path correct (run `which uv` or `where uv`)
+   - Confirm project path correct and no Chinese characters
+   - Check client error logs
+
+2. **HTTP Mode**:
+   - Confirm service started (visit `http://localhost:3333/mcp`)
+   - Check firewall settings
+   - Try using 127.0.0.1 instead of localhost
+
+3. **General Checks**:
+   - Restart client application
+   - Check MCP service logs
+   - Use MCP Inspector to test connection
+
+</details>
+
+<details>
+<summary><b>👉 Click to expand: Q3: Tool Call Failed or Returns Error?</b></summary>
+<br>
+
+**Possible Reasons**:
+
+1. **Data Does Not Exist**:
+   - Confirm crawler has run (have output directory data)
+   - Check query date range has data
+   - Check available dates in output directory
+
+2. **Parameter Error**:
+   - Check date format: `YYYY-MM-DD`
+   - Confirm correct platform ID: `zhihu`, `weibo`, etc.
+   - See parameter descriptions in tool docs
+
+3. **Config Issues**:
+   - Confirm `config/config.yaml` exists
+   - Confirm `config/frequency_words.txt` exists
+   - Check config file format is correct
+
+</details>
+
+### Project Articles
+
+> **Related Articles** (Chinese):
+
+- [Comment here for mobile Q&A by project author](https://mp.weixin.qq.com/s/KYEPfTPVzZNWFclZh4am_g)
+- [Breaking 1000 stars in 2 months - My GitHub project promotion experience](https://mp.weixin.qq.com/s/jzn0vLiQFX408opcfpPPxQ)
+- [Important notes for running this project via GitHub fork](https://mp.weixin.qq.com/s/C8evK-U7onG1sTTdwdW2zg)
+- [How to write WeChat Official Account or news articles based on this project](https://mp.weixin.qq.com/s/8ghyfDAtQZjLrnWTQabYOQ)
+
+> **AI Development**:
+- If you have niche requirements, you can develop based on my project yourself, even with zero programming experience
+- All my open-source projects use my own **AI-assisted software** to improve development efficiency, this tool is now open-source
+- **Core Function**: Quickly filter project code to feed AI, you just need to add personal requirements
+- **Project Address**: https://github.com/sansan0/ai-code-context-helper
+
+## ⭐ Related Projects
+
+> 📍 Chairman Mao's Footprint Map - Interactive dynamic display of complete trajectory 1893-1976. Welcome comrades to contribute data
+
+- https://github.com/sansan0/mao-map
+
+> Bilibili Comment Data Visualization Analysis Software
+
+- https://github.com/sansan0/bilibili-comment-analyzer
+
+
+<details>
+<summary><strong>👉 Click to expand: WeChat Push Notification Solution</strong></summary>
+<br>
+
+> Since this solution is based on WeWork's plugin mechanism and has very different push styles, I temporarily don't plan to include related implementation in the current project
+
+- Fork this user's project: https://github.com/jayzqj/TrendRadar
+- Complete WeWork push setup above
+- Follow the image below to operate
+- After configuration, you can delete WeWork app from your phone
+
+<img src="_image/wework.png" title="github"/>
+
+</details>
+
+### Project Workflow Diagram
+
+```mermaid
+flowchart TD
+    A[👤 User Start] --> B{🚀 Choose Deployment}
+
+    B -->|Cloud Deployment| C1[🍴 Fork to GitHub]
+    B -->|Local Deployment| C2[🐳 Docker Deploy]
+
+    C1 --> D[⚙️ Configure Notification<br/>Multiple channels supported]
+    C2 --> D
+
+    D --> E[Choose method:<br/>📱WeWork 💬Feishu 🔔DingTalk<br/>📟Telegram 📧Email]
+
+    E --> F[🔑 Fill notification params<br/>GitHub Secrets or Env Vars]
+
+    F --> G[📝 Configure keywords<br/>config/frequency_words.txt<br/>Normal/Required+/Filter!]
+
+    G --> H[🎯 Choose mode<br/>config/config.yaml]
+
+    H --> H1[📋 daily - Daily summary<br/>Scheduled push all matches]
+    H --> H2[📰 current - Current rankings<br/>Scheduled push latest]
+    H --> H3[📈 incremental - Incremental<br/>Push only new content]
+
+    H1 --> I[Optional: Push time window<br/>⏰ Limit push time range]
+    H2 --> I
+    H3 --> I
+
+    I --> J[✅ Config Complete]
+
+    J --> K[🤖 Auto Run]
+
+    K --> L[🕷️ Crawl 11+ platforms]
+    L --> M[🔍 Keyword filtering]
+    M --> N[⚖️ Weight sorting<br/>Rank 60% + Freq 30% + Hot 10%]
+    N --> O[📊 Generate reports<br/>HTML + Push messages]
+    O --> P[📱 Multi-channel push]
+
+    P --> Q[🎉 Receive precise push<br/>Say goodbye to info overload]
+
+    style A fill:#e3f2fd
+    style B fill:#f3e5f5
+    style D fill:#fff3e0
+    style F fill:#fff9c4
+    style G fill:#e8f5e9
+    style H fill:#e0f2f1
+    style I fill:#fce4ec
+    style O fill:#e1bee7
+    style Q fill:#c8e6c9
+```
+
+[![Star History Chart](https://api.star-history.com/svg?repos=sansan0/TrendRadar&type=Date)](https://www.star-history.com/#sansan0/TrendRadar&Date)
+
+
+## 📄 License
+
+GPL-3.0 License
+
+---
+
+<div align="center">
+
+[🔝 Back to Top](#trendradar)
+
+</div>

BIN
_image/302ai.png


BIN
_image/ai3.png


BIN
_image/banner-302ai-en.jpg


BIN
_image/banner-302ai-zh.jpg


BIN
_image/icon-302ai.png


+ 29 - 29
mcp_server/server.py

@@ -173,9 +173,12 @@ async def analyze_topic_trend(
             - "viral": 异常热度检测(识别突然爆火的话题)
             - "predict": 话题预测(预测未来可能的热点)
         date_range: 日期范围(trend和lifecycle模式),可选
-                    - **格式**: {"start": "YYYY-MM-DD", "end": "YYYY-MM-DD"}
-                    - **示例**: {"start": "2025-10-18", "end": "2025-10-25"}
-                    - **说明**: AI需要根据用户的自然语言(如"最近7天")自动计算日期范围
+                    - **格式**: {"start": "YYYY-MM-DD", "end": "YYYY-MM-DD"}(必须是标准日期格式)
+                    - **说明**: AI必须根据当前日期自动计算并填入具体日期,不能使用"今天"等自然语言
+                    - **计算示例**:
+                      - 用户说"最近7天" → AI计算: {"start": "2025-11-11", "end": "2025-11-17"}(假设今天是11-17)
+                      - 用户说"上周" → AI计算: {"start": "2025-11-11", "end": "2025-11-17"}(上周一到上周日)
+                      - 用户说"本月" → AI计算: {"start": "2025-11-01", "end": "2025-11-17"}(11月1日到今天)
                     - **默认**: 不指定时默认分析最近7天
         granularity: 时间粒度(trend模式),默认"day"(仅支持 day,因为底层数据按天聚合)
         threshold: 热度突增倍数阈值(viral模式),默认3.0
@@ -188,11 +191,15 @@ async def analyze_topic_trend(
 
     **AI使用说明:**
     当用户使用相对时间表达时(如"最近7天"、"过去一周"、"上个月"),
-    AI需要自动计算对应的日期范围并传递给 date_range 参数
+    AI必须根据当前日期(从环境 <env> 获取)计算出具体的 YYYY-MM-DD 格式日期
 
-    Examples:
-        - analyze_topic_trend(topic="人工智能", analysis_type="trend", date_range={"start": "2025-10-18", "end": "2025-10-25"})
-        - analyze_topic_trend(topic="特斯拉", analysis_type="lifecycle", date_range={"start": "2025-10-18", "end": "2025-10-25"})
+    **重要**:date_range 不接受"今天"、"昨天"等自然语言,必须是 YYYY-MM-DD 格式!
+
+    Examples (假设今天是 2025-11-17):
+        - 用户:"分析AI最近7天的趋势"
+          → analyze_topic_trend(topic="人工智能", analysis_type="trend", date_range={"start": "2025-11-11", "end": "2025-11-17"})
+        - 用户:"看看特斯拉本月的热度"
+          → analyze_topic_trend(topic="特斯拉", analysis_type="lifecycle", date_range={"start": "2025-11-01", "end": "2025-11-17"})
         - analyze_topic_trend(topic="比特币", analysis_type="viral", threshold=3.0)
         - analyze_topic_trend(topic="ChatGPT", analysis_type="predict", lookahead_hours=6)
     """
@@ -415,14 +422,22 @@ async def search_news(
 
     **AI使用说明:**
     当用户使用相对时间表达时(如"最近7天"、"过去一周"、"最近半个月"),
-    AI需要自动计算对应的日期范围。计算规则:
-    - "最近7天" → {"start": "今天-6天", "end": "今天"}
-    - "过去一周" → {"start": "今天-6天", "end": "今天"}
-    - "最近30天" → {"start": "今天-29天", "end": "今天"}
+    AI必须根据当前日期(从环境 <env> 获取)计算出具体的 YYYY-MM-DD 格式日期。
 
-    Examples:
-        - 今天的新闻: search_news(query="人工智能")
-        - 最近7天: search_news(query="人工智能", date_range={"start": "2025-10-18", "end": "2025-10-25"})
+    **重要**:date_range 不接受"今天"、"昨天"等自然语言,必须是 YYYY-MM-DD 格式!
+
+    **计算规则**(假设从 <env> 获取今天是 2025-11-17):
+    - "今天" → 不传 date_range(默认查今天)
+    - "最近7天" → {"start": "2025-11-11", "end": "2025-11-17"}
+    - "过去一周" → {"start": "2025-11-11", "end": "2025-11-17"}
+    - "上周" → 计算上周一到上周日,如 {"start": "2025-11-11", "end": "2025-11-17"}
+    - "本月" → {"start": "2025-11-01", "end": "2025-11-17"}
+    - "最近30天" → {"start": "2025-10-19", "end": "2025-11-17"}
+
+
+    Examples (假设今天是 2025-11-17):
+        - 用户:"今天的AI新闻" → search_news(query="人工智能")
+        - 用户:"最近7天的AI新闻" → search_news(query="人工智能", date_range={"start": "2025-11-11", "end": "2025-11-17"})
         - 精确日期: search_news(query="人工智能", date_range={"start": "2025-01-01", "end": "2025-01-07"})
         - 模糊搜索: search_news(query="特斯拉降价", search_mode="fuzzy", threshold=0.4)
     """
@@ -640,27 +655,12 @@ def run_server(
 
 
 if __name__ == '__main__':
-    import sys
     import argparse
 
     parser = argparse.ArgumentParser(
         description='TrendRadar MCP Server - 新闻热点聚合 MCP 工具服务器',
         formatter_class=argparse.RawDescriptionHelpFormatter,
         epilog="""
-使用示例:
-  # STDIO 模式(用于 Cherry Studio)
-  uv run python mcp_server/server.py
-
-  # HTTP 模式(适合远程访问)
-  uv run python mcp_server/server.py --transport http --port 3333
-
-Cherry Studio 配置示例:
-  设置 > MCP Servers > 添加服务器
-  - 名称: TrendRadar
-  - 类型: STDIO
-  - 命令: [UV的完整路径]
-  - 参数: --directory [项目路径] run python mcp_server/server.py
-
 详细配置教程请查看: README-Cherry-Studio.md
         """
     )

+ 13 - 13
mcp_server/tools/analytics.py

@@ -186,9 +186,9 @@ class AnalyticsTools:
         Returns:
             趋势分析结果字典
 
-        Examples:
-            - analyze_topic_trend_unified(topic="人工智能", analysis_type="trend", date_range={"start": "2025-10-18", "end": "2025-10-25"})
-            - analyze_topic_trend_unified(topic="特斯拉", analysis_type="lifecycle", date_range={"start": "2025-10-18", "end": "2025-10-25"})
+        Examples (假设今天是 2025-11-17):
+            - 用户:"分析AI最近7天的趋势" → analyze_topic_trend_unified(topic="人工智能", analysis_type="trend", date_range={"start": "2025-11-11", "end": "2025-11-17"})
+            - 用户:"看看特斯拉本月的热度" → analyze_topic_trend_unified(topic="特斯拉", analysis_type="lifecycle", date_range={"start": "2025-11-01", "end": "2025-11-17"})
             - analyze_topic_trend_unified(topic="比特币", analysis_type="viral", threshold=3.0)
             - analyze_topic_trend_unified(topic="ChatGPT", analysis_type="predict", lookahead_hours=6)
         """
@@ -270,10 +270,10 @@ class AnalyticsTools:
 
             代码调用示例:
             >>> tools = AnalyticsTools()
-            >>> # 分析7天趋势
+            >>> # 分析7天趋势(假设今天是 2025-11-17)
             >>> result = tools.get_topic_trend_analysis(
             ...     topic="人工智能",
-            ...     date_range={"start": "2025-10-18", "end": "2025-10-25"},
+            ...     date_range={"start": "2025-11-11", "end": "2025-11-17"},
             ...     granularity="day"
             ... )
             >>> # 分析历史月份趋势
@@ -421,10 +421,10 @@ class AnalyticsTools:
             - "分析各平台今天的热点分布"
 
             代码调用示例:
-            >>> tools = AnalyticsTools()
+            >>> # 对比各平台(假设今天是 2025-11-17)
             >>> result = tools.compare_platforms(
             ...     topic="人工智能",
-            ...     date_range={"start": "2025-10-01", "end": "2025-10-11"}
+            ...     date_range={"start": "2025-11-08", "end": "2025-11-17"}
             ... )
             >>> print(result['platform_stats'])
         """
@@ -668,10 +668,10 @@ class AnalyticsTools:
             ...     topic="特斯拉",
             ...     limit=10
             ... )
-            >>> # 分析一周内的特斯拉新闻,返回前10条按权重排序
+            >>> # 分析一周内的特斯拉新闻(假设今天是 2025-11-17)
             >>> result = tools.analyze_sentiment(
             ...     topic="特斯拉",
-            ...     date_range={"start": "2025-10-06", "end": "2025-10-13"},
+            ...     date_range={"start": "2025-11-11", "end": "2025-11-17"},
             ...     limit=10
             ... )
             >>> print(result['ai_prompt'])  # 获取生成的提示词
@@ -1355,9 +1355,9 @@ class AnalyticsTools:
             - "分析各平台的发布时间规律"
 
             代码调用示例:
-            >>> tools = AnalyticsTools()
+            >>> # 查看各平台活跃度(假设今天是 2025-11-17)
             >>> result = tools.get_platform_activity_stats(
-            ...     date_range={"start": "2025-10-01", "end": "2025-10-11"}
+            ...     date_range={"start": "2025-11-08", "end": "2025-11-17"}
             ... )
             >>> print(result['platform_activity'])
         """
@@ -1486,10 +1486,10 @@ class AnalyticsTools:
             - "追踪'比特币'话题的热度变化"
 
             代码调用示例:
-            >>> tools = AnalyticsTools()
+            >>> # 分析话题生命周期(假设今天是 2025-11-17)
             >>> result = tools.analyze_topic_lifecycle(
             ...     topic="人工智能",
-            ...     date_range={"start": "2025-10-18", "end": "2025-10-25"}
+            ...     date_range={"start": "2025-10-19", "end": "2025-11-17"}
             ... )
             >>> print(result['lifecycle_stage'])
         """

+ 2 - 2
mcp_server/tools/data_query.py

@@ -106,11 +106,11 @@ class DataQueryTools:
         Returns:
             搜索结果字典
 
-        Example:
+        Example (假设今天是 2025-11-17):
             >>> tools = DataQueryTools()
             >>> result = tools.search_news_by_keyword(
             ...     keyword="人工智能",
-            ...     date_range={"start": "2025-10-01", "end": "2025-10-11"},
+            ...     date_range={"start": "2025-11-08", "end": "2025-11-17"},
             ...     limit=50
             ... )
             >>> print(result['total'])

+ 80 - 15
readme.md

@@ -8,11 +8,13 @@
 
 <a href="https://trendshift.io/repositories/14726" target="_blank"><img src="https://trendshift.io/api/badge/repositories/14726" alt="sansan0%2FTrendRadar | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
 
+<a href="https://share.302.ai/mEOUzG" target="_blank"><img src="_image/302ai.png" alt="302.AI logo" height="40"/></a>
+
 [![GitHub Stars](https://img.shields.io/github/stars/sansan0/TrendRadar?style=flat-square&logo=github&color=yellow)](https://github.com/sansan0/TrendRadar/stargazers)
 [![GitHub Forks](https://img.shields.io/github/forks/sansan0/TrendRadar?style=flat-square&logo=github&color=blue)](https://github.com/sansan0/TrendRadar/network/members)
 [![License](https://img.shields.io/badge/license-GPL--3.0-blue.svg?style=flat-square)](LICENSE)
 [![Version](https://img.shields.io/badge/version-v3.0.5-blue.svg)](https://github.com/sansan0/TrendRadar)
-[![MCP](https://img.shields.io/badge/MCP-v1.0.1-green.svg)](https://github.com/sansan0/TrendRadar)
+[![MCP](https://img.shields.io/badge/MCP-v1.0.2-green.svg)](https://github.com/sansan0/TrendRadar)
 
 [![企业微信通知](https://img.shields.io/badge/企业微信-通知-00D4AA?style=flat-square)](https://work.weixin.qq.com/)
 [![Telegram通知](https://img.shields.io/badge/Telegram-通知-00D4AA?style=flat-square)](https://telegram.org/)
@@ -29,6 +31,11 @@
 
 </div>
 
+<div align="center">
+
+**中文** | **[English](README-EN.md)**
+
+</div>
 
 > 本项目以轻量,易部署为目标
 
@@ -38,17 +45,17 @@
 
 | [🎯 核心功能](#-核心功能) | [🚀 快速开始](#-快速开始) | [🐳 Docker部署](#-docker-部署) | [🤖 AI分析专区](#-ai-智能分析部署) |
 |:---:|:---:|:---:|:---:|
-| [📝 更新日志](#-更新日志) | [🔌 MCP客户端](#-mcp-客户端) | [❓ 答疑与常见问题](#问题答疑与1元点赞) | [⭐ 项目相关](#项目相关) |
+| [📝 更新日志](#-更新日志) | [🔌 MCP客户端](#-mcp-客户端) | [❓ 答疑与公益](#问题答疑与公益捐助) | [⭐ 项目相关](#项目相关) |
 | [🔧 自定义监控平台](#自定义监控平台) | [📝 frequency_words.txt 配置](#frequencywordstxt-配置教程) | | |
 
 </div>
 
 - 感谢**耐心反馈 bug** 的贡献者,你们的每一条反馈让项目更加完善😉;  
 - 感谢**为项目点 star** 的观众们,**fork** 你所欲也,**star** 我所欲也,两者得兼😍是对开源精神最好的支持;  
-- 感谢**关注[公众号](#问题答疑与1元点赞)** 的读者们,你们的留言、点赞、分享和推荐等积极互动让内容更有温度😎。  
+- 感谢**关注[公众号](#问题答疑与公益捐助)** 的读者们,你们的留言、点赞、分享和推荐等积极互动让内容更有温度😎。  
 
 <details>
-<summary>👉 点击查看<strong>致谢名单</strong> (当前 <strong>🔥66🔥</strong> 位)</summary>
+<summary>👉 点击查看<strong>致谢名单</strong> (当前 <strong>🔥71🔥</strong> 位)</summary>
 
 ### 数据支持
 
@@ -68,6 +75,11 @@
 
 |           点赞人            |  金额  |  日期  |             备注             |
 | :-------------------------: | :----: | :----: | :-----------------------: |
+|           *鬼          |  1 | 2025.11.17  |    | 
+|           *超          |  10 | 2025.11.17  |    | 
+|           R*w          |  10 | 2025.11.17  | 这 agent 做的牛逼啊,兄弟    | 
+|           J*o          |  1 | 2025.11.17  | 感谢开源,祝大佬事业有成    | 
+|           *晨          |  8.88  | 2025.11.16  | 项目不错,研究学习中    | 
 |           *海          |  1  | 2025.11.15  |    | 
 |           *德          |  1.99  | 2025.11.15  |    | 
 |           *疏          |  8.8  | 2025.11.14  |  感谢开源,项目很棒,支持一下   | 
@@ -547,16 +559,21 @@ GitHub 一键 Fork 即可使用,无需编程基础。
 
 
 
-### 2025/10/26 - mcp-v1.0.1
+### 2025/11/18 - mcp-v1.0.2
 
   **MCP 模块更新:**
-  - 修复日期查询参数传递错误
-  - 统一所有工具的时间参数格式
+  - 优化查询今日新闻却可能错误返回过去日期的情况
 
 
 <details>
 <summary><strong>👉 点击展开:历史更新</strong></summary>
 
+### 2025/10/26 - mcp-v1.0.1
+
+  **MCP 模块更新:**
+  - 修复日期查询参数传递错误
+  - 统一所有工具的时间参数格式
+
 
 ### 2025/10/31 - v3.0.4
 
@@ -1048,7 +1065,7 @@ frequency_words.txt 文件增加了一个【必须词】功能,使用 + 号
    > **自动识别**:使用以上邮箱时,无需手动配置 `EMAIL_SMTP_SERVER` 和 `EMAIL_SMTP_PORT`,系统会自动识别。
    >
    > **反馈说明**:
-   > - 如果使用**其他邮箱**测试成功,欢迎开 [Issues](https://github.com/sansan0/TrendRadar/issues) 告知,我会添加到支持列表
+   > - 如果使用**其他邮箱**测试成功,欢迎开 [Issues](https://github.com/sansan0/TrendRadar/issues) 告知,我会添加到支持列表
    > - 如果上述邮箱配置有误或无法使用,也请开 [Issues](https://github.com/sansan0/TrendRadar/issues) 反馈,帮助改进项目
 
    **常见邮箱设置:**
@@ -1427,7 +1444,7 @@ TrendRadar v3.0.0 新增了基于 **MCP (Model Context Protocol)** 的 AI 分析
 
 Cherry Studio 提供 GUI 配置界面, 5 分钟快速部署, 复杂的部分是一键安装的。
 
-**图文部署教程**:现已更新到我的[公众号](#问题答疑与1元点赞),回复 "mcp" 即可
+**图文部署教程**:现已更新到我的[公众号](#问题答疑与公益捐助),回复 "mcp" 即可
 
 **详细部署教程**:[README-Cherry-Studio.md](README-Cherry-Studio.md)
 
@@ -1439,7 +1456,7 @@ Cherry Studio 提供 GUI 配置界面, 5 分钟快速部署, 复杂的部分
 
 > 实际不建议一次性问多个问题。如果你选择的 ai 模型连下图的按顺序调用都无法做到,建议换一个。
 
-<img src="/_image/ai2.png" alt="mcp 使用效果图2" width="600">
+<img src="/_image/ai3.png" alt="mcp 使用效果图" width="600">
 
 
 ## 🔌 MCP 客户端
@@ -1735,17 +1752,65 @@ MCP Inspector 是官方调试工具,用于测试 MCP 连接:
 </details>
 
 
-## ☕问题答疑与1元点赞
+## ☕问题答疑与公益捐助
+
+> 如果你想支持本项目,可通过微信搜索**腾讯公益**,对里面的**助学计划**随心捐助~
+>  
+> 我还在为信息过载而焦虑,他们却在信息荒漠中挣扎,连学习的机会都没有,所以他们比我更需要支持。 
+
+<details>
+<summary><b>👉 点击展开:作者有话说</b></summary>
+<br>
+
+感谢各位支持!因获得赞助商赞助,现已移除**一元点赞**打赏码。
+
+之前参与**一元点赞**的朋友已收录至顶部**致谢名单**。
+
+本项目开发和维护投入了大量时间、精力和成本(含 AI 模型费用),有了赞助支持后可以更安心维护。
+
+目前大厂模型价格已相对亲民,如果你手上暂无合适的模型,点击下方**302.AI**也是对开发者的支持:
 
-> 心意到就行,收到的**点赞**用于提高开发者开源的积极性。**点赞**已收录于**致谢名单**  
+<div align="center">
+
+<span style="margin-left: 10px"><a href="https://share.302.ai/mEOUzG" target="_blank"><img src="_image/icon-302ai.png" alt="302.AI logo" width="100"/></a></span>
+
+</div>
+
+**使用流程:**
+
+1. 注册并充值后,进入右上角 [管理后台](https://302.ai/dashboard/overview)
+2. 点击左侧 [API Keys](https://302.ai/apis/list)
+3. 在页面下方找到默认 API KEY,点击眼睛图标查看,然后复制(注意:不是点最右侧的复制按钮)
+4. Cherry Studio 已集成 302.AI,直接填入 API 密钥即可使用(当前必须得先填密钥才能看到完整模型列表)
+
+若你已有合适的模型,也欢迎先**注册体验**~
+
+</details>
 
 - **GitHub Issues**:适合针对性强的解答。提问时请提供完整信息(截图、错误日志、系统环境等)。
 - **公众号交流**:适合快速咨询。建议优先在相关文章下的公共留言区交流,如私信,请文明礼貌用语😉
 
 
-|公众号关注 |微信点赞 | 支付宝点赞 |
-|:---:|:---:|:---:| 
-| <img src="_image/weixin.png" width="300" title="硅基茶水间"/> | <img src="https://cdn-1258574687.cos.ap-shanghai.myqcloud.com/img/%2F2025%2F07%2F17%2F2ae0a88d98079f7e876c2b4dc85233c6-9e8025.JPG" width="300" title="微信支付"/> | <img src="https://cdn-1258574687.cos.ap-shanghai.myqcloud.com/img/%2F2025%2F07%2F17%2F1ed4f20ab8e35be51f8e84c94e6e239b4-fe4947.JPG" width="300" title="支付宝支付"/> |
+<div align="center">
+
+|公众号关注 |
+|:---:|
+| <img src="_image/weixin.png" width="400" title="硅基茶水间"/> |
+
+</div>
+
+## 🪄赞助商
+
+> 302.AI 是一个按用量付费的企业级 AI 资源平台       
+> 提供市场上最新、最全面的 **AI模型** 和 **API**,以及多种开箱即用的在线 AI 应用。
+
+
+<div align="center">
+
+<span style="margin-left: 10px"><a href="https://share.302.ai/mEOUzG" target="_blank"><img src="_image/banner-302ai-zh.jpg" alt="302ai banner" width="800"/></a>
+
+</div>
+
 
 ### 常见问题