by Jesseovo
last30days-cn 是一个 AI Agent 技能(Skill),能够自动搜索中国互联网 8 大主流平台最近 30 天的内容,综合分析后生成有据可查的研究报告。
# Add to your Claude Code skills
git clone https://github.com/Jesseovo/last30days-skill-cnGuides for using ai agents skills like last30days-skill-cn.
Last scanned: 5/24/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-24T07:21:54.446Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": false
}See how last30days-skill-cn compares with popular alternatives.
last30days-skill-cn is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Jesseovo. last30days-cn 是一个 AI Agent 技能(Skill),能够自动搜索中国互联网 8 大主流平台最近 30 天的内容,综合分析后生成有据可查的研究报告。. It has 1,910 GitHub stars.
Yes. last30days-skill-cn passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/Jesseovo/last30days-skill-cn" and add it to your Claude Code skills directory (see the Installation section above). last30days-skill-cn ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
last30days-skill-cn is primarily written in Python. It is open-source under Jesseovo on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh last30days-skill-cn against similar tools.
No comments yet. Be the first to share your thoughts!
30 days in the Featured rail · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
You are a Chinese-internet research assistant. Use this skill when the user wants recent Chinese-platform discussion, public sentiment, product reputation, trend research, "最近 30 天" coverage, or what is trending right now (热搜 / 热榜 / 今天有什么热点).
Ground every claim in the returned evidence. Never invent sources, links, engagement numbers, dates, quotes or platform sentiment. When coverage is thin or a platform failed, say so plainly.
| The user asks… | Run |
|---|---|
| About a topic / product / person / event | Topic research (section 2) |
| "今天/现在有什么热点", "热搜", "全网热榜", "trending" | Hot board: --hot (section 3) |
| Hot topics about one theme ("今天 AI 圈有什么热点") | --hot "<关键词>" |
| Overseas opinion too (Reddit / HN / GitHub / X / YouTube) | Add --global --global-query "<English keywords>" (section 4) |
| Something is broken / which platforms work | --diagnose (section 6) |
{{SKILL_DIR}} is this skill's directory. Use python3 (or python on Windows).
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --emit compact
Variants:
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --quick --emit compact # faster, query-type tiered platforms
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --deep --emit compact # more pages per platform
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --search bilibili,zhihu,xhs --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --days 7 --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --as-of 2026-05-01 --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --emit html-path # offline HTML report path
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --refresh --emit compact # ignore the 24h cache
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --no-cache --emit compact # no cache read/write
--search, all eight Chinese platforms run. --search accepts ids, aliases (xhs, bili, hn, gh) and groups (cn, global, all).--quick mode which platforms run.LAST30DAYS_DEFAULT_SEARCH, INCLUDE_SOURCES and EXCLUDE_SOURCES (env or ~/.config/last30days-cn/.env) change the default platform set.python {{SKILL_DIR}}/scripts/last30days.py --hot --emit compact
python {{SKILL_DIR}}/scripts/last30days.py --hot "AI" --emit compact # only hot items about a theme
python {{SKILL_DIR}}/scripts/last30days.py --hot --hot-sources boards,news,global --emit compact
python {{SKILL_DIR}}/scripts/last30days.py --hot --emit html-path # dashboard page
It needs no topic and fetches 微博热搜, 百度热搜, 抖音热榜, 头条热榜, B站热搜 and 知乎热榜 in parallel. news adds IT之家 / 虎嗅 / 少数派 / 爱范儿 / Solidot, and global adds the Hacker News front page. "跨平台热点" lists events that are on several boards at once.
When you present it: lead with 跨平台热点, then 2–4 notable items per platform, and say that hot lists are real-time rankings, not 30-day totals. Offer a deep-dive with python {{SKILL_DIR}}/scripts/last30days.py "<话题>".
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --global --global-query "<English keywords>" --emit compact
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --search hackernews,github,reddit --global-query "<English keywords>"
python {{SKILL_DIR}}/scripts/last30days.py "{{USER_TOPIC}}" --search x,youtube --global-query "<English keywords>" # needs upstream last30days installed
--global-query. Otherwise the overseas sources report that a query is needed.x, youtube, tiktok, instagram and upstream go through the bridge to an installed mvanhorn/last30days skill, which needs its own keys and Python 3.12+. If it isn't installed, tell the user: npx skills add mvanhorn/last30days-skill -g.🌐 last30days-cn v4.0.0-cn · 数据截至 …. If it ends with · 缓存, say the evidence came from cache.Sources: block. Cite inline: platform name plus the URL from the evidence.**来源:** footer shows each platform's status:
✅ with a path label (wbi-search, so.toutiao, site-search:ddg, …) means results came from that path.⚠️ 0 条 means the search worked but nothing matched the window.❌ … means the platform failed, with the reason and a fix.
Relay ❌ reasons briefly; don't hide them.Since 2025, 微博, 小红书, 知乎 and 抖音 search mostly require a logged-in session. Without one, the engine falls back to hot lists and public web search. When the footer shows they failed or fell back, tell the user the one-time fix:
python {{SKILL_DIR}}/scripts/last30days.py login xiaohongshu # also: weibo | zhihu | douyin | bilibili
python {{SKILL_DIR}}/scripts/last30days.py login zhihu --cookie "<cookie copied from the user's own browser>"
python {{SKILL_DIR}}/scripts/last30days.py --diagnose # human-readable status
python {{SKILL_DIR}}/scripts/last30days.py --diagnose --emit json
python {{SKILL_DIR}}/scripts/last30days.py setup # first-time setup + .env template
login <platform> opens a visible browser for the user to scan a QR code or sign in. Don't run it on their behalf unless they ask, and never ask for or handle passwords. On machines without a display, the user can paste their own cookie with --cookie.python -m pip install playwright && python -m playwright install chromium.LAST30DAYS_BROWSER_PATH to a Chrome/Chromium the system can run, or LAST30DAYS_BROWSER_CHANNEL=chrome. You can also skip the browser entirely with --no-browser / LAST30DAYS_DISABLE_BROWSER=1. A failed launch switches the run to browserless mode automatically, with that same advice.Everything is optional. Settings go in ~/.config/last30days-cn/.env (or .claude/last30days-cn.env in a project):
WEIBO_COOKIE= # or: login weibo
ZHIHU_COOKIE= # or: login zhihu
BILIBILI_COOKIE= # reduces Bilibili 412 risk control
TIKHUB_API_KEY= # Douyin
WECHAT_API_KEY= # WeChat public accounts (jisuapi)
BAIDU_API_KEY= # Baidu Qianfan AI Search (Bearer key)
XIAOHONGSHU_API_BASE= # self-hosted xiaohongshu-mcp, auto-detected on 127.0.0.1:18060
GITHUB_TOKEN= # higher GitHub search limits
LAST30DAYS_DISABLE_BROWSER=1
This skill is for learning, research and personal knowledge work. Keep request frequency low, respect platform terms and robots.txt, and avoid large-scale scraping, personal-data collection, commercial data services or any illegal use.
中文互联网近 30 天研究引擎。 让 AI Agent 去微博、小红书、B站、知乎、抖音、微信公众号、百度、今日头条看看最近大家到底在说什么,按互动和时效排序、跨平台归并,写成每条结论都有出处的研究报告。也可以一条命令查看全网热榜。
npx skills add Jesseovo/last30days-skill-cn -g
装好后直接对你的 Agent 说:
用 last30days 研究一下「新能源汽车价格战」最近 30 天的讨论
今天全网有什么热点?
作为 Agent 技能使用(Claude Code、Codex、Cursor、Gemini CLI 等支持 Agent Skills 的工具):
npx skills add Jesseovo/last30days-skill-cn -g
直接在命令行使用:
git clone https://github.com/Jesseovo/last30days-skill-cn.git
cd last30days-skill-cn
python scripts/last30days.py "AI编程助手" # 研究一个主题
python scripts/last30days.py --hot # 全网热榜
python scripts/last30days.py --diagnose # 查看各平台是否可用、怎么修
可选增强:
python -m pip install jieba # 更准的中文分词
python -m pip install playwright && python -m playwright install chromium # 登录态平台需要
# Claude Code 手动安装
git clone https://github.com/Jesseovo/last30days-skill-cn.git ~/.claude/skills/last30days-cn
# OpenClaw / ClawHub
git clone https://github.com/Jesseovo/last30days-skill-cn.git ~/.agents/skills/last30days-cn
SKILL.md 添加为项目技能。gemini-extension.json)。python scripts/last30days.py "AI编程助手" # 默认:8 个平台、最近 30 天
python scripts/last30days.py "AI编程助手" --emit html-path # 生成 HTML 报告并输出路径
python scripts/last30days.py "AI编程助手" --deep # 每个平台抓更多
python scripts/last30days.py "AI编程助手" --quick # 只跑和问题类型最相关的平台
python scripts/last30days.py "AI编程助手" --search bili,zhihu,xhs
python scripts/last30days.py "AI编程助手" --days 7
python scripts/last30days.py "AI编程助手" --as-of 2026-05-01 # 回看某个历史时间窗
输出示例(格式示意):
🌐 last30days-cn v4.0.0-cn · 数据截至 2026-10-03
## 研究结果: AI编程助手
### 🔗 跨平台聚合热点
- **某工具发布新版本** — 覆盖 B站、今日头条、微博(4 条)
### B站视频
**BL1** (得分:95) 某UP主 (2026-09-28) [1,446播放, 140收藏, 116点赞]
2026 最新 Codex 完整教程
https://www.bilibili.com/video/BV...
---
**来源:**
✅ B站: 18 条(路径: wbi-search×20)
✅ 今日头条: 6 条(原始 15 条,按时间窗/相关性保留)(路径: so.toutiao×15)
❌ 小红书: 小红书搜索需要登录态:运行 `python scripts/last30days.py login xiaohongshu` …
报告文件保存在 ~/.local/share/last30days/out/:report.md、report.json、report.html、last30days.context.md。
python scripts/last30days.py --hot # 微博 / 百度 / 抖音 / 头条 / B站 / 知乎
python scripts/last30days.py --hot AI # 只看和某个主题有关的热点
python scripts/last30days.py --hot --hot-sources boards,news,global # 加上科技资讯 RSS 与 Hacker News
python scripts/last30days.py --hot --emit html-path # 生成热榜网页
LAST30DAYS_HOT_FEEDS="名称|RSS地址,名称|RSS地址",例如自建 RSSHub 的 36 氪快讯或 X 列表。仓库自带 GitHub Actions 工作流 .github/workflows/daily-hot.yml,可以把热榜每天自动发布成一个网页。默认不运行,在你的仓库(或 fork)中启用:
HOT_PAGES,值为 trueHOT_SOURCES(默认 boards,news,global)、HOT_FEEDS(自定义 RSS)、HOT_TITLE(页面标题)之后每天北京时间 08:00、12:00、20:00 自动更新,地址为 https://<用户名>.github.io/<仓库名>/。
小红书、微博、知乎、抖音的搜索基本都要求登录。扫码登录一次即可(需要 Playwright):
python scripts/last30days.py login xiaohongshu # 也支持 weibo / zhihu / douyin / bilibili
登录态保存在 ~/.config/last30days-cn/browser_cookies/(仅当前用户可读),之后的检索会自动复用;过期后会提示重新登录。
服务器、SSH 等没有图形界面的环境,可以导入自己浏览器里复制的 Cookie:
python scripts/last30days.py login zhihu --cookie "z_c0=...; _xsrf=..."
也可以在配置文件里填 WEIBO_COOKIE、ZHIHU_COOKIE、BILIBILI_COOKIE。
不登录也能用:这些平台会改用热榜匹配和公开搜索兜底,报告里会注明「只有公开链接,缺少互动数据」。
python scripts/last30days.py "Claude Code 评测" --global # 加上 Hacker News / GitHub / Reddit
python scripts/last30days.py "AI编程助手" --global --global-query "AI coding assistant" # 中文主题需提供英文关键词
python scripts/last30days.py "Claude Code" --search x,youtube # 通过上游 last30days 获取
GITHUB_TOKEN 提高额度;Reddit 会拒绝部分云服务器 IP,遇到时会明确提示。npx skills add mvanhorn/last30days-skill -g,需要 Python 3.12+)。INCLUDE_SOURCES=global。B站、头条、微信公众号、百度和全网热榜都不需要浏览器。
浏览器启动失败时,本次运行会自动切换到无浏览器模式,并提示修复方法,不会让每个平台各卡一遍。
新版 Chromium 在旧系统(如 macOS Catalina)上启动不了时,可以改用系统已经装好的浏览器:
export LAST30DAYS_BROWSER_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
python scripts/last30days.py --diagnose --probe-browser # 真实启动一次,确认可用
完全不用浏览器:加 --no-browser,或在配置里写 LAST30DAYS_DISABLE_BROWSER=1。
机器性能一般时,设置 LAST30DAYS_BROWSER_CONCURRENCY=1 让浏览器一个一个开。
支持 Python 3.8(macOS Catalina 自带的 python3)。
| 平台 | 数据路径(按顺序尝试) | 不登录 / 不配置时 | 可选配置 |
|---|---|---|---|
| 🔴 微博 | 开放平台 API → 登录 Cookie 搜索 → 登录态浏览器 | 热搜榜匹配 + 公开搜索 | login weibo、WEIBO_COOKIE、WEIBO_ACCESS_TOKEN |
| 📕 小红书 | xiaohongshu-mcp → 登录态浏览器 | 公开搜索(仅笔记链接) | login xiaohongshu、XIAOHONGSHU_API_BASE |
| 📺 B站 | WBI 签名搜索 → 备用接口 → 浏览器 | ✅ 完整可用 | BILIBILI_COOKIE |
| 💬 知乎 | Cookie 搜索 → 登录态浏览器 | 热榜匹配 + 公开搜索 | login zhihu、ZHIHU_COOKIE |
| 🎵 抖音 | TikHub API → 登录态浏览器 | 热榜匹配 + 公开搜索 | login douyin、TIKHUB_API_KEY |
| 💚 微信公众号 | 极速数据 API → 搜狗微信 | ✅ 搜狗微信可用 | WECHAT_API_KEY |
| 🔵 百度 | 千帆 AI 搜索 API → 网页搜索 | 网页搜索 + 公开搜索 | BAIDU_API_KEY |
| 📰 今日头条 | 资讯搜索 + 热榜 | ✅ 完整可用 | — |
| 🌏 海外(可选) | Hacker News / GitHub / Reddit;上游桥接 X / YouTube / TikTok | — | --global、GITHUB_TOKEN |
「公开搜索」指通过搜索引擎查找该平台的公开页面,只能拿到链接和摘要,没有可靠的互动数据和精确日期。报告会把这类结果单独标出。
所有配置都是可选的。运行 python scripts/last30days.py setup 会生成带注释的配置模板 ~/.config/last30days-cn/.env(项目级配置放在 .claude/last30days-cn.env):
# 登录态(推荐用 login 命令扫码;没有图形界面时再手动填写)
WEIBO_COOKIE=
ZHIHU_COOKIE=
BILIBILI_COOKIE=
# API Key
TIKHUB_API_KEY= # 抖音
WECHAT_API_KEY= # 微信公众号(极速数据)
BAIDU_API_KEY= # 百度千帆「AI 搜索」
WEIBO_ACCESS_TOKEN= # 微博开放平台
XIAOHONGSHU_API_BASE= # 自部署的 xiaohongshu-mcp,默认自动探测 127.0.0.1:18060
GITHUB_TOKEN= # 海外 GitHub 源
# 运行开关
LAST30DAYS_DISABLE_BROWSER=1 # 不使用浏览器
LAST30DAYS_BROWSER_PATH= # 指定本机浏览器
INCLUDE_SOURCES=global # 默认附带海外源
EXCLUDE_SOURCES=douyin # 默认排除某些平台
LAST30DAYS_HOT_FEEDS= # 热榜自定义 RSS
优先级:命令行环境变量 > 项目级配置 > 全局配置。Windows(PowerShell)创建配置目录:New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.config\last30days-cn"。
| 参数 | 说明 |
|---|---|
--emit |
compact(默认,给 Agent 用)/ md / json / html / html-path / context / path |
--quick / --deep |
快速(只跑与问题类型最相关的平台)/ 深度(每个平台抓更多) |
--days N |
回溯天数,1–30,默认 30 |
--as-of YYYY-MM-DD |
以指定日期为终点回溯 |
--search SOURCES |
平台或分组:weibo、xhs、bili、zhihu、douyin、wechat、baidu、toutiao、cn、global、all、hn、github、reddit、x、youtube 等 |
--global / --global-query Q |
启用海外源 / 海外源使用的英文关键词 |
--hot [关键词] |
全网热榜;配合 --hot-sources、--hot-limit、--hot-title |
login <平台> [--cookie "..."] |
保存平台登录态 |
--diagnose [--probe-browser] |
诊断各平台;--emit json 输出机器可读结果 |
setup |
首次配置,生成配置模板 |
--no-browser |
本次运行不使用浏览器 |
--refresh / --no-cache / --cache-ttl H |
缓存控制(默认缓存 24 小时) |
--save-dir DIR / --timeout SECS / --debug |
另存输出 / 全局超时 / 调试日志 |
各平台的互动指标:微博(转发 / 评论 / 点赞)、小红书(点赞 / 收藏 / 评论 / 分享)、B站(播放 / 弹幕 / 评论 / 点赞 / 收藏)、知乎(赞同 / 评论 / 收藏)、抖音(点赞 / 评论 / 分享 / 播放)、头条(阅读 / 评论 / 点赞)。
last30days-skill-cn/
├── SKILL.md # Agent 读取的技能说明
├── scripts/
│ ├── last30days.py # 命令行入口
│ └── lib/ # 平台适配、检索流水线、热榜、渲染、诊断等
├── skills/last30days/ # 自动生成的可安装技能包(勿手动修改)
├── tests/ # 回归测试(不联网)
└── .github/workflows/ # CI 与每日热榜发布
参与开发请先阅读 AGENTS.md,技术细节见 SPEC.md,版本变化见 release-notes.md。
请务必仔细阅读以下内容。使用本项目即表示您同意以下所有条款。
浏览器模式驱动真实浏览器、复用你本人登录的会话,由页面自己发出请求,不涉及逆向加密算法或破解安全机制。各平台接口随时可能变更,本项目不保证所有功能始终可用。请控制请求频率(建议每次搜索间隔 ≥ 5 秒)。
💡 爬虫违法违规的案例频发,请务必合法合规使用。参考:中国爬虫相关法律案例汇总