**Weibo Public Opinion Multi-Agent Analysis System** is an innovative public opinion analysis platform built from scratch, utilizing multi-agent collaborative architecture to provide accurate, real-time, and comprehensive Weibo public opinion monitoring and analysis services. The system achieves full-process automation from data collection and sentiment analysis to report generation through the collaboration of five specialized AI agents.
**"WeiYu"** is an innovative multi-agent public opinion analysis system built from scratch, featuring universal simplicity across all platforms.
### 🚀 Key Features
See the system-generated research report on "Wuhan University Public Opinion":[In-depth Analysis Report on Wuhan University's Brand Reputation](./final_reports/final_report__20250827_131630.html)
-**Multi-Agent Collaborative Architecture**: 5 specialized agents working together to complete the full process of public opinion analysis
-**Comprehensive Data Collection**: Integrating Weibo crawlers, news search, multimedia content, and other multi-dimensional data sources
-**Deep Sentiment Analysis**: Precise multilingual sentiment recognition based on fine-tuned BERT/GPT-2/Qwen models
-**Intelligent Report Generation**: Automatically generate structured HTML analysis reports with custom template support
-**Agent Forum Communication**: ForumEngine provides information sharing and collaborative decision-making platform for agents
-**High-Performance Asynchronous Processing**: Support concurrent processing of multiple public opinion tasks with real-time status monitoring
-**Cloud Data Support**: Convenient cloud database service with 100,000+ daily real data
Beyond just report quality, compared to similar products, we have 🚀 six major advantages:
## 🏗️ System Architecture
1.**AI-Driven Comprehensive Monitoring**: AI crawler clusters operate 24/7 non-stop, comprehensively covering 10+ key domestic and international social media platforms including Weibo, Xiaohongshu, TikTok, Kuaishou, etc. Not only capturing trending content in real-time, but also drilling down to massive user comments, letting you hear the most authentic and widespread public voice.
### Overall Architecture Diagram
2.**Composite Analysis Engine Beyond LLM**: We not only rely on 5 types of professionally designed Agents, but also integrate middleware such as fine-tuned models and statistical models. Through multi-model collaborative work, we ensure the depth, accuracy, and multi-dimensional perspective of analysis results.
```mermaid
graph TB
subgraph "Frontend Display Layer"
UI[Web Interface<br/>Flask + Streamlit]
end
subgraph "Multi-Agent Collaboration Layer"
QE[QueryEngine<br/>News Search Agent]
ME[MediaEngine<br/>Multimedia Search Agent]
IE[InsightEngine<br/>Deep Insight Agent]
RE[ReportEngine<br/>Report Generation Agent]
Forum[ForumEngine<br/>Agent Forum Communication Center]
end
subgraph "Data Processing Layer"
MS[MindSpider<br/>Weibo Crawler System]
SA[SentimentAnalysis<br/>Sentiment Analysis Model Collection]
DB[(MySQL<br/>Database)]
end
subgraph "External Service Layer"
LLM[LLM API<br/>DeepSeek/Kimi/Gemini]
Search[Search API<br/>Tavily/Bocha]
end
UI --> QE
UI --> ME
UI --> IE
UI --> RE
QE --> Search
ME --> Search
IE --> MS
IE --> SA
QE --> LLM
ME --> LLM
IE --> LLM
RE --> LLM
MS --> DB
SA --> DB
%% Agent Forum Communication Mechanism
QE <--> Forum
ME <--> Forum
IE <--> Forum
RE <--> Forum
```
3.**Powerful Multimodal Capabilities**: Breaking through text and image limitations, capable of deep analysis of short video content from TikTok, Kuaishou, etc., and precisely extracting structured multimodal information cards such as weather, calendar, stocks from modern search engines, giving you comprehensive control over public opinion dynamics.
4.**Agent "Forum" Collaboration Mechanism**: Endowing different Agents with unique toolsets and thinking patterns, conducting chain-of-thought collision and debate through the "forum" mechanism. This not only avoids the thinking limitations of single models and homogenization caused by communication, but also catalyzes higher-quality collective intelligence and decision support.
5.**Seamless Integration of Public and Private Domain Data**: The platform not only analyzes public opinion, but also provides high-security interfaces supporting seamless integration of your internal business databases with public opinion data. Breaking through data barriers, providing powerful analysis capabilities of "external trends + internal insights" for vertical businesses.
6.**Lightweight and Highly Extensible Framework**: Based on pure Python modular design, achieving lightweight, one-click deployment. Clear code structure allows developers to easily integrate custom models and business logic, enabling rapid platform expansion and deep customization.
**Starting with public opinion, but not limited to public opinion**. The goal of "WeiYu" is to become a simple and universal data analysis engine that drives all business scenarios.
Say goodbye to traditional data dashboards. In "WeiYu", everything starts with a simple question - you just need to ask your analysis needs like a conversation
</div>
The system's core workflow is based on multi-agent collaboration:
## 🏗️ System Architecture
### Overall Architecture Diagram
1.**QueryEngine (News Query Agent)**: Uses Tavily API to search authoritative news reports, providing official information sources
2.**MediaEngine (Multimedia Search Agent)**: Conducts multimodal content search through Bocha API to gather social media perspectives
3.**InsightEngine (Deep Insight Agent)**: Queries local Weibo database, combines multiple sentiment analysis models for deep analysis
4.**ForumEngine (Forum Monitoring Agent)**: Real-time monitoring of agent log outputs, extracts key information and promotes collaboration
5.**ReportEngine (Report Generation Agent)**: Based on analysis results from all agents, uses Gemini LLM to generate comprehensive HTML reports
Still drawing...
### Project Code Structure
### Project Code Structure Tree
```
Weibo_PublicOpinion_AnalysisSystem/
├── QueryEngine/ # News Query Engine Agent
├── QueryEngine/ # Domestic and international news breadth search Agent