sn-search-social-cn
用于搜索中文社交平台,包括 B站视频、知乎问答、小红书笔记、微博帖子和抖音视频。部分平台需要 cookie 认证。
pinned to #d8bb438updated 2 weeks ago
Ask your AI client: “install skills/sn-search-social-cn”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install skills/sn-search-social-cnmetahub onboarded this repo on the author's behalf.
If you own github.com/OpenSenseNova/SenseNova-Skills on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
4,699
Last commit
2 weeks ago
Latest release
published
- #agent
- #agent-skills
- #ai-agents
- #ai-assistant
- #data-analysis
- #document-processing
- #office-automation
- #presentation-slides
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.d8bb438· 2 weeks ago
Kind-specific
31Skill: SKILL.md present
found at skills/sn-search-social-cn/SKILL.md · frontmatter source: SKILL.md
Skill: body content present
1,032 words · 3,267 chars · 11 sections · 11 code blocks
Skill: triggers declaredwarn
No `trigger` phrases in SKILL.md frontmatter
Add `trigger:` lines so Claude knows when to activate this skill — e.g. `when building MCP servers` or `for diagram creation`.
Skill: allowed-tools scope
no allowed-tools restriction (Claude may use anything)
Release history
1- releasecurrentd8bb438warn2 weeks ago
Contents
凭证配置
API key、token 与 cookie 统一建议写在仓库根目录 .env(参考 .env.example),并由 runtime 或用户在执行前加载为同名环境变量。脚本仍只从环境变量或显式 CLI 参数读取凭证;不要把真实密钥写入 skill payload、报告、日志或提交。
搜索 B站、知乎、小红书、微博、抖音五个中文社交平台。
稳定性说明
中文社交平台没有稳定的公开搜索 API,所有脚本依赖内部 API 或第三方库,可能因平台更新而失效。
| 脚本 | 平台 | 稳定性 | 认证方式 |
|---|---|---|---|
bilibili_search.py | B站 | 较高 | 无需(可选 cookie 提高质量) |
zhihu_search.py | 知乎 | 中等 | 需 ZHIHU_COOKIE |
xiaohongshu_search.py | 小红书 | 中等 | 需 XHS_COOKIE |
weibo_search.py | 微博 | 中等 | 需 WEIBO_COOKIE |
douyin_search.py | 抖音 | 较低 | 需 DOUYIN_COOKIE |
依赖
首次运行或脚本提示缺库时,使用本技能的依赖清单安装到当前 Python 环境:
python3 -m pip install -r requirements.txt
不要在脚本内部自动安装依赖。若安装失败、网络不可用或包不可用,停止使用对应脚本并改用 browser-use 搜索免费可见网页,说明缺少依赖。
Cookie 获取方式
- 在浏览器中登录对应平台
- 打开开发者工具(F12)→ Network 标签
- 刷新页面,在请求头中找到
Cookie字段 - 将完整 cookie 字符串设置为对应环境变量
参数说明
bilibili_search.py
python3 scripts/bilibili_search.py <query> [选项]
| 参数 | 说明 | 默认值 |
|---|---|---|
query | 搜索关键词(必填) | — |
--limit, -n | 返回结果数量 | 10 |
--cookie | B站 Cookie(也可通过 BILIBILI_COOKIE 环境变量设置,可选,提高结果质量) | — |
--order | 排序:空=综合, totalrank=最佳匹配, click=播放, pubdate=最新, dm=弹幕, stow=收藏 | 综合 |
python3 scripts/bilibili_search.py "机器学习教程" --limit 5
python3 scripts/bilibili_search.py "Python" --order click --limit 10
zhihu_search.py
python3 scripts/zhihu_search.py <query> [选项]
| 参数 | 说明 | 默认值 |
|---|---|---|
query | 搜索关键词(必填) | — |
--limit, -n | 返回结果数量 | 10 |
--cookie | 知乎 Cookie(也可通过 ZHIHU_COOKIE 环境变量设置,必填) | — |
--type | 搜索类型:general, topic, people, zvideo | general |
ZHIHU_COOKIE="..." python3 scripts/zhihu_search.py "Python 异步编程" --limit 5
python3 scripts/zhihu_search.py "大模型" --cookie "..." --type topic --limit 5
xiaohongshu_search.py
python3 scripts/xiaohongshu_search.py <query> [选项]
| 参数 | 说明 | 默认值 |
|---|---|---|
query | 搜索关键词(必填) | — |
--limit, -n | 返回结果数量 | 10 |
--cookie | 小红书 Cookie(也可通过 XHS_COOKIE 环境变量设置,必填) | — |
--sort | 排序方式:general=综合, hot=热度, new=最新 | general |
XHS_COOKIE="..." python3 scripts/xiaohongshu_search.py "咖啡推荐" --limit 5
python3 scripts/xiaohongshu_search.py "美食" --cookie "..." --sort hot --limit 10
weibo_search.py
python3 scripts/weibo_search.py <query> [选项]
| 参数 | 说明 | 默认值 |
|---|---|---|
query | 搜索关键词(必填) | — |
--limit, -n | 返回结果数量 | 10 |
--cookie | 微博 Cookie(也可通过 WEIBO_COOKIE 环境变量设置,必填) | — |
--page | 页码 | 1 |
WEIBO_COOKIE="..." python3 scripts/weibo_search.py "AI 新闻" --limit 5
python3 scripts/weibo_search.py "热搜" --cookie "..." --page 2 --limit 10
douyin_search.py
python3 scripts/douyin_search.py <query> [选项]
| 参数 | 说明 | 默认值 |
|---|---|---|
query | 搜索关键词(必填) | — |
--limit, -n | 返回结果数量 | 10 |
--cookie | 抖音 Cookie(也可通过 DOUYIN_COOKIE 环境变量设置,必填) | — |
DOUYIN_COOKIE="..." python3 scripts/douyin_search.py "编程教程" --limit 5
输出格式
标准 JSON:{"success": true, "query": "...", "provider": "bilibili|zhihu|xiaohongshu|weibo|douyin", "items": [...], "error": null}
Reviews
No reviews yet. Be the first.
Related
Browser Use
🌐 Make websites accessible for AI agents. Automate tasks online with ease.
Gpt Researcher
An autonomous agent that conducts deep research on any data using any LLM providers
orchestration-patterns
>
mh install skills/sn-search-social-cn