360 Secure SkillHub
360 安全技能中心

CN Trends Aggregator

通过 python3 脚本抓取百度热榜、今日头条、V2EX、Hacker News 和 GitHub 近 7 天热门项目,支持按来源选择、条数限制与 HTTP 代理,可输出 json、text 或 markdown 三种格式,便于生成每日热榜简报。

huoguang16
huoguang16
热度 81.80
最近更新 2026-05-11 17:38:11
分类:搜索依赖:第三方 API / 代码执行应用场景:研究 / 推荐

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cn-trends-aggregator
Metadata
name
cn-hot-trends
description
中文+全球热榜聚合器。一键获取百度热榜、今日头条、V2EX、Hacker News、GitHub 热门新项目。Use when: user asks about trending topics, hot searches, what's popular, today's hot news, tech trends, or wants a daily briefing. Triggers on: 热榜、热搜、趋势、trending、hot、what's popular、daily briefing.

CN Hot Trends — 中文+全球热榜聚合

Quick Start

python3 scripts/fetch_trends.py --proxy http://127.0.0.1:7897 --format markdown

Data Sources

Source ID Content Auth
百度热榜 baidu 实时热搜,7M+ 热度值 No
今日头条 toutiao 头条热榜 No
V2EX v2ex 技术社区热帖 + 回复数 No
Hacker News hn 全球科技热帖 + 分数 No
GitHub github 近 7 天热门新项目 No

Usage

# All sources, markdown output
python3 scripts/fetch_trends.py --format markdown

# Specific sources, JSON output
python3 scripts/fetch_trends.py --sources baidu,v2ex --format json --limit 5

# With proxy (needed for V2EX, HN, GitHub)
python3 scripts/fetch_trends.py --proxy http://127.0.0.1:7897

# Plain text
python3 scripts/fetch_trends.py --format text --limit 10

Options

Flag Default Description
--sources baidu,toutiao,v2ex,hn,github Comma-separated source IDs
--limit 10 Items per source
--format json Output: json, text, markdown
--proxy none HTTP proxy URL

Output Formats

  • json: Structured data, good for further processing
  • text: Human-readable plain text
  • markdown: Formatted tables, good for chat/email output

Tips

  • Baidu and Toutiao work without proxy; V2EX/HN/GitHub need proxy in some regions
  • Combine with AI analysis: fetch trends → summarize → identify patterns
  • Use --sources github to discover trending open-source projects
  • Pair with cron for daily automated briefings