
Llm Intelligent Public Opinion Analytics
Deploy and operate an LLM-assisted public-opinion stack that crawls multi-platform hot lists, clusters topics, scores sentiment, and pushes alerts.
Install
npx skills add https://github.com/aradotso/data-skills --skill llm-intelligent-public-opinion-analyticsWhat is this skill?
- Real-time crawler cluster for 26 hot lists across 15 platforms (Weibo, Bilibili, Zhihu, Baidu, etc.)
- LLM-powered analysis including video content extraction and natural-language query interface
- Topic clustering and sentiment analysis on aggregated trending content
- Multi-channel alerts: Email, WeChat Work, Telegram
- Keyboard shortcuts for crawler control in the deployed assistant
Adoption & trust: 1 installs on skills.sh; 1 GitHub stars; trending (+100% hot-view momentum).
Recommended Skills
Paper Context Resolverlllllllama/ai-paper-reproduction-skill
Repo Intake And Planlllllllama/ai-paper-reproduction-skill
Env And Assets Bootstraplllllllama/ai-paper-reproduction-skill
Minimal Run And Auditlllllllama/ai-paper-reproduction-skill
Analyze Projectlllllllama/rigorpilot-skills
Ai Research Reproductionlllllllama/rigorpilot-skills
Journey fit
Primary fit
Trend and sentiment monitoring compounds distribution and product decisions in Grow; deployment itself spans Build integrations. Analytics is the primary shelf for cross-platform trending, clustering, and opinion dashboards—not pure SEO copy.
SKILL.md
READMESKILL.md - Llm Intelligent Public Opinion Analytics
# LLM-Based Intelligent Public Opinion Analytics Assistant > Skill by [ara.so](https://ara.so) — Data Skills collection. ## Overview This project is a comprehensive public opinion analytics platform that combines real-time data from **26 hot lists across 15 mainstream platforms** (Weibo, Bilibili, Zhihu, Baidu, etc.) with large language model (LLM) analysis capabilities. It provides conversational query interfaces for hot searches, topic clustering, sentiment analysis, and multi-channel push notifications (WeChat, Email, Telegram). **Key Capabilities:** - Real-time crawler cluster for 15+ platforms - LLM-powered content analysis (including video content extraction) - Natural language query interface - Topic clustering and sentiment analysis - Multi-channel alert system (Email, WeChat Work, Telegram) - Keyboard shortcuts for crawler control ## Installation ### Prerequisites 1. **Browser Driver Setup** (Required for detail page scraping): ```bash # Check your Chrome/Edge version first # Chrome: chrome://settings/help # Edge: edge://settings/help # Download matching driver: # ChromeDriver: https://chromedriver.chromium.org/ # EdgeDriver: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ # Linux/macOS - place driver in PATH: sudo mv chromedriver /usr/local/bin/ sudo chmod +x /usr/local/bin/chromedriver # Verify installation: chromedriver --version ``` 2. **MySQL Database**: ```bash # Install MySQL 8.0+ # Create database and user mysql -u root -p CREATE DATABASE hotsearch_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER 'hotsearch_user'@'localhost' IDENTIFIED BY 'your_password'; GRANT ALL PRIVILEGES ON hotsearch_db.* TO 'hotsearch_user'@'localhost'; FLUSH PRIVILEGES; ``` 3. **Python Environment**: ```bash # Clone repository git clone https://github.com/hmmnxkl/LLM-Based-Intelligent-Public-Opinion-Analytics-Assistant.git cd LLM-Based-Intelligent-Public-Opinion-Analytics-Assistant # Create virtual environment python3 -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate # Install dependencies pip install -r requirements.txt ``` ### Database Initialization Reference the `init.py` file to create necessary tables: ```python # Example table structure (adapt from init.py) import pymysql connection = pymysql.connect( host='localhost', user='hotsearch_user', password='your_password', database='hotsearch_db', charset='utf8mb4' ) cursor = connection.cursor() # Hot search items table cursor.execute(""" CREATE TABLE IF NOT EXISTS hot_search_items ( id INT AUTO_INCREMENT PRIMARY KEY, platform VARCHAR(50) NOT NULL, rank INT, title VARCHAR(500) NOT NULL, url VARCHAR(1000), heat_value VARCHAR(100), crawl_time DATETIME NOT NULL, detail_content TEXT, sentiment VARCHAR(20), INDEX idx_platform (platform), INDEX idx_crawl_time (crawl_time) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; """) connection.commit() connection.close() ``` ## Configuration ### Environment Variables Create `.env` file in the project root: ```bash # Database Configuration MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_USER=hotsearch_user MYSQL_PASSWORD=your_password MYSQL_DATABASE=hotsearch_db # LLM API Configuration (OpenAI-compatible format) OPENAI_API_KEY=your_api_key OPENAI_API_BASE=https://your-llm-endpoint.com/v1 OPENAI_MODEL=gpt-4 # Huawei Pangu Model (recomm