corrinehu-kimi-searchzhihu

Search Zhihu (知乎) using agent-browser with proper authentication handling. Use when user asks to "search zhihu", "知乎搜索", "在知乎上找", or any Zhihu-related search requests. Handles login requirements, session persistence, and common error cases like 40362 restrictions.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "corrinehu-kimi-searchzhihu" with this command: npx skills add corrinehu/agent-skills/corrinehu-agent-skills-corrinehu-kimi-searchzhihu

知乎搜索指南

核心要点

知乎有严格的反爬机制,必须使用 --session-name 保存登录状态,否则每次都需要重新登录。

⚠️ 关键:全程保持 --headed 模式

  • 知乎会检测访问模式变化(有界面 ↔ 无头)
  • 登录和搜索必须全程使用 --headed,不能切换
  • 一旦切换模式,即使已登录也会触发安全验证

工作流程

首次使用(需要登录)

# 1. 使用 --headed 模式打开登录页面(需要用户扫码/密码登录)
npx agent-browser --executable-path /usr/bin/google-chrome \
  --session-name zhihu --headed open https://www.zhihu.com/signin

# 2. 用户完成登录后,后续操作无需重复登录

后续使用(已登录)

# 全程使用 --headed 模式,不要切换
npx agent-browser --executable-path /usr/bin/google-chrome \
  --session-name zhihu --headed open https://www.zhihu.com/search?q=关键词

重要:登录后不要关闭浏览器,直接在同一窗口继续操作

完整搜索示例(推荐流程)

# 1. 清除旧会话(如有问题)
npx agent-browser state clear zhihu-default

# 2. 登录(使用 --headed)
npx agent-browser --executable-path /usr/bin/google-chrome \
  --session-name zhihu-default --headed open https://www.zhihu.com/signin
# 用户完成登录...

# 3. 搜索(保持 --headed,同一会话)
npx agent-browser open "https://www.zhihu.com/search?type=content&q=关键词"
npx agent-browser wait --load networkidle
npx agent-browser screenshot result.png --full

关键参数说明

参数用途必需
--session-name zhihu保存/复用登录状态✅ 必须
--headed显示浏览器窗口(登录和搜索都必须使用✅ 必须
--executable-path指定系统 Chrome 路径推荐

常见错误处理

40362 错误 / 安全验证

现象:页面显示 {"error":{"code":40362,"message":"您当前请求存在异常..."}} 或要求点击"开始验证"

原因

  1. 未登录或会话过期
  2. 切换了访问模式(登录用 --headed,搜索时去掉 --headed

解决

  1. 全程使用 --headed 模式,不要切换
  2. 确保使用 --session-name zhihu
  3. 如果仍报错,清除会话重新登录:npx agent-browser state clear zhihu

超时错误

现象Timeout 25000ms exceeded

解决

# 使用 --full 截图时可能超时,建议先用普通截图
npx agent-browser screenshot result.png

# 或等待更长时间
npx agent-browser wait 5000

Daemon 已运行

现象--executable-path ignored: daemon already running

解决

npx agent-browser close
sleep 1
# 重新执行命令

什么情况下需要登录?

场景是否需要登录
搜索内容✅ 必须
浏览首页✅ 必须
查看完整回答✅ 必须
通过百度搜索知乎❌ 不需要

会话管理

# 查看已保存的会话
npx agent-browser state list

# 清除知乎会话(需要重新登录)
npx agent-browser state clear zhihu

# 关闭浏览器	npx agent-browser close

环境检查

开始之前检查:

# 检查系统 Chrome
which google-chrome

# 预期输出:/usr/bin/google-chrome

快速参考

# 完整命令链(已登录状态下)
npx agent-browser --executable-path /usr/bin/google-chrome \
  --session-name zhihu open https://www.zhihu.com && \
npx agent-browser wait --load networkidle && \
npx agent-browser fill @e10 "搜索关键词" && \
npx agent-browser click @e11 && \
npx agent-browser wait --load networkidle && \
npx agent-browser screenshot /tmp/zhihu_search.png --full

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

corrinehu-kimi-usebrowser

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

Repository Source
86.7K23Kvercel
Automation

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

Repository Source
60.8K23Kvercel
Automation

supabase-postgres-best-practices

Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.

Repository Source
35.5K1.6Ksupabase
corrinehu-kimi-searchzhihu | V50.AI