Hot Trend Collector logo

Hot Trend Collector

Community
jiushiwon
hot-trend-collector

热点抓取工具,支持知乎、微博、百度指数等平台热点数据采集与 REST API 服务

Overview

Publisherjiushiwon
Repositorywg-skills
Skill namehot-trend-collector
Stars
123
Forks
38
Bundled files
5
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jiushiwon on GitHub. Read the source before you install it.

Installation

Install the Hot Trend Collector AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/backend/python/hot-trend-collector
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jiushiwon/wg-skills.git /tmp/wg-skills
mkdir -p .claude/skills
cp -r /tmp/wg-skills/vibeCoding/backend/python/hot-trend-collector .claude/skills/hot-trend-collector
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hot Trend Collector in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Hot Trend Collector on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Hot Trend Collector is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Hot Trend Collector

热点抓取工具,提供多平台热点数据采集能力,并暴露 REST API 供前端调用。

使用场景

  • 自媒体运营平台需要热点数据作为创作素材
  • 需要定时抓取热点并存储
  • 需要手动添加热点作为补充

功能特性

支持的热点来源

来源类型说明
知乎热榜API/爬虫获取知乎实时热榜
微博热搜爬虫获取微博热搜榜
百度指数爬虫获取搜索热度
微信指数爬虫获取公众号热度
手动输入人工支持手动添加热点

核心功能

  1. 热点抓取 - 定时/手动抓取多平台热点
  2. 热点管理 - 列表展示、筛选、删除
  3. REST API - 提供热点数据的增删改查接口

项目结构

hot-trend-collector/
├── SKILL.md
├── scripts/
│   ├── collector.py          # 抓取脚本入口
│   ├── collectors/           # 各平台抓取器
│   │   ├── __init__.py
│   │   ├── zhihu.py         # 知乎热榜
│   │   ├── weibo.py         # 微博热搜
│   │   ├── baidu.py         # 百度指数
│   │   └── wechat.py        # 微信指数
│   └── scheduler.py         # 定时任务
├── references/
│   └── api.md               # API 文档
└── assets/
    └── sample_data.json     # 示例数据

使用方法

1. 安装依赖

bash
pip install requests beautifulsoup4 aiohttp schedule

2. 启动服务

bash
python scripts/collector.py

服务默认在 http://localhost:8000 启动。

3. API 接口

方法路径说明
GET/api/trends获取热点列表
POST/api/trends手动添加热点
DELETE/api/trends/{id}删除热点
POST/api/trends/collect触发抓取
GET/api/trends/sources获取支持的来源

4. 定时任务

启动时会自动开启定时任务,每小时抓取一次热点。

配置说明

在 scripts/config.py 中配置:

python
# 抓取间隔(小时)
COLLECT_INTERVAL = 1

# 是否启用定时任务
ENABLE_SCHEDULER = True

# 数据存储文件
DATA_FILE = "data/trends.json"

扩展新的热点源

在 scripts/collectors/ 目录下创建新的抓取器:

python
# scripts/collectors/new_source.py
import requests

def fetch_trends():
    """获取新平台热点"""
    # 实现抓取逻辑
    return [
        {"title": "热点标题", "url": "链接", "heat": 100, "source": "new_source"}
    ]

然后在 collector.py 中注册:

python
from collectors import new_source

注意事项

  • 遵守各平台的 Robots.txt 规则
  • 合理设置抓取频率,避免对目标网站造成压力
  • 微博等平台可能需要 Cookie,建议登录后抓取

触发词

hot-trend-collector、Hot Trend Collector

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Hot Trend Collector AI skill do?

热点抓取工具,支持知乎、微博、百度指数等平台热点数据采集与 REST API 服务

Why use Hot Trend Collector on TypingMind?

Because you install it once and use it with any model. Hot Trend Collector is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Hot Trend Collector in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/backend/python/hot-trend-collector. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Hot Trend Collector?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Hot Trend Collector?

As many as you like. As long as a model supports skills, you can use Hot Trend Collector with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Hot Trend Collector AI skill free?

Yes. It is published on GitHub by jiushiwon under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇