
This lets Claude search three major Chinese social platforms: Bilibili for videos, Zhihu for Q&A content, and Douyin (TikTok's Chinese version) for short videos. Fair warning: there are no official APIs here, so the scripts use internal endpoints that could break when platforms update. Bilibili works without authentication and is the most stable. Zhihu and Douyin require you to grab cookies from your browser session, with Douyin being the flakiest of the bunch. You get standard JSON output with video metadata, view counts, and links. Honestly useful if you're researching Chinese language content or need to pull examples from these platforms, but expect occasional maintenance when things inevitably break.
$ npx -y skills add opensensenova/sensenova-skills --skill sn-search-social-cn --agent claude-codeInstalls into .claude/skills of the current project.
API key、token 与 cookie 统一建议写在仓库根目录 .env(参考 .env.example),并由 runtime 或用户在执行前加载为同名环境变量。脚本仍只从环境变量或显式 CLI 参数读取凭证;不要把真实密钥写入 skill payload、报告、日志或提交。
脚本搜索 B站、知乎、抖音三个中文社交平台。小红书、微博当前没有可用脚本入口,如研究必须覆盖这两类来源,使用 browser-use 打开公开网页结果或平台搜索页,并在结果中说明该来源来自网页兜底。
中文社交平台没有稳定的公开搜索 API,所有脚本依赖内部 API 或第三方库,可能因平台更新而失效。
| 脚本 | 平台 | 稳定性 | 认证方式 |
|---|---|---|---|
bilibili_search.py | B站 | 较高 | 无需(可选 cookie 提高质量) |
zhihu_search.py | 知乎 | 中等 | 需 ZHIHU_COOKIE |
douyin_search.py | 抖音 | 较低 | 需 DOUYIN_COOKIE |
| 无脚本 | 小红书 | 低 | browser-use / 公开网页兜底 |
| 无脚本 | 微博 | 低 | browser-use / 公开网页兜底 |
首次运行或脚本提示缺库时,使用本技能的依赖清单安装到当前 Python 环境:
python3 -m pip install -r requirements.txt
不要在脚本内部自动安装依赖。若安装失败、网络不可用或包不可用,停止使用对应脚本并改用 browser-use 搜索免费可见网页,说明缺少依赖。
Cookie 字段XHS_COOKIE / WEIBO_COOKIE。python3 scripts/bilibili_search.py <query> [选项]
Sponsors