本文へ移動
cccskills
無料GitHub で公開

zhihu-search

Search Zhihu for content using the search_v3 API. Use when user mentions Zhihu, 知乎, searching Zhihu, searching 知乎, Zhihu search, 知乎搜索, searching for answers/articles on Zhihu, or says 搜一下知乎, 在知乎上搜索, 找知乎上的, 知乎上搜搜. Also applies to exploring Zhihu's internal API endpoints, extracting search results in bulk, and monitoring Zhihu for new content on specific topics.

インストール方法を見る

含まれるファイル(3)

  • SKILL.md6.1 KB
  • scripts/enum-params.py1.8 KB
  • scripts/search.py3.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Zhihu — Search

Search query → Structured search results with pagination support

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Provide reliable access to Zhihu's search API to extract structured content (answers, articles, users, topics, etc.) with filtering, sorting, and pagination capabilities.

Prerequisites

  • Target page is already open in the browser: https://www.zhihu.com/

Pre-execution Checks

1. Tool Readiness

If browser-act has been confirmed available in the current session → skip this step.

Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.

2. Login Verification

If login status for the target site has been confirmed in the current session → skip this step.

Otherwise: open the target site and observe the page login status:

  • Logout/sign-out entry, user avatar, or username exists → logged in, continue execution
  • Login/register entry exists with no logout entry → not logged in, inform the user that login is needed first, assist the user in completing the login flow

User refuses or cannot log in → terminate execution.

Capability Components

This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. Its role is equivalent to copy-pasting on the user's behalf — the data is already on screen, automation merely saves time. JS code is encapsulated in Python files under the scripts/ directory, invoked via eval "$(python scripts/xxx.py {params})". $(...) is bash syntax; it is recommended to use the bash tool for execution.

Below are all atomic capabilities discovered and verified during the exploration phase, listed by command template with parameters. Simply invoke them as needed — no need to read scripts/*.py source code or re-verify. Only inspect scripts when execution fails for troubleshooting. Combine freely as needed during execution.

API: Search Zhihu

eval "$(python scripts/search.py '{query}' --vertical {vertical} --sort {sort} --time-interval {time_interval} --offset {offset} --limit {limit})"

Parameters:

  • query: Search query string (required)
  • --vertical: Content type, default answer (answer, article, zhuanlan, people, topic, live)
  • --sort: Sort order, default default (default, upvoted_count, created_time)
  • --time-interval: Time filter, default all (all, a_day, a_week, a_month, three_months, half_a_year, a_year)
  • --offset: Pagination offset, default 0
  • --limit: Items per page, default 20

Output example:

{
  "success": true,
  "query": "AI Agent",
  "total": 1250,
  "offset": 0,
  "limit": 20,
  "has_next": true,
  "has_prev": false,
  "results": [
    {
      "type": "search_result",
      "id": "123456789",
      "title": "如何理解 AI Agent?",
      "excerpt": "AI Agent 是指能够自主感知环境、做出决策并执行动作的智能体...",
      "url": "https://www.zhihu.com/question/1234567/answer/123456789",
      "author": {
        "id": "987654321",
        "name": "张三",
        "headline": "AI 研究员",
        "avatar_url": "https://pic2.zhimg.com/v2-xxx.jpg"
      },
      "upvoted_count": 1520,
      "comment_count": 89,
      "created_time": 1701234567,
      "updated_time": 1701234567
    }
  ]
}

Enum Parameters

[API] vertical, sort, time_interval — eval "$(python scripts/enum-params.py --param all)"

Pagination

API Pagination: offset, type: page-number, start value: 0. Next page value source: increment by limit. Termination: has_next === false.

Success Criteria

result.results.length >= 1 or result.total >= 0 (valid zero-result response)

Known Limitations

  • Rate limits may apply with excessive requests
  • Some content types may return fewer results than expected
  • Time filters apply to content creation time, not update time

Execution Efficiency

  • Batch orchestration: Write a bash script to loop through the command templates serially within a single session; do not parallelize within one browser (prone to triggering anti-scraping restrictions). Refer to rate information in "Known Limitations" above to add appropriate intervals. To increase throughput, open multiple stealth browser sessions and distribute work across them — each session has an independent fingerprint so rate limits apply per session
  • Test before batch execution: After writing a batch script, you must first test with 1-2 items to verify the script runs correctly; only then run the full batch. Never skip testing and execute in batch directly
  • Reduce redundant pre-operations: When multiple steps depend on the same prerequisite state, complete them in batch under that state to avoid repeatedly establishing the same state
  • Error resumption: Save results item by item during batch processing; on failure, resume from the breakpoint rather than starting over

Experience Notes

Path: browser-act-skill-forge-memories/zhihu-search-zhihu-search.memory.md

Before execution: If the file exists, read it first — it records unexpected situations encountered during past executions (e.g., a strategy has become ineffective); adjust strategy order accordingly.

After execution: If an unexpected situation is encountered (strategy became ineffective, page redesigned, anti-scraping upgraded, better path discovered), append a line: {YYYY-MM-DD}: {what happened} → {conclusion}

Normal execution does not write to the file. Do not record what keywords were used or how many results were returned — those are task outputs, not experience.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

AI 类文章和项目教程的撰写与重构优化。支持新写和重构优化(结合最新源码重写已有文章)两种输入模式,四种风格:安装教程、产品评测、面试八股、深度拆解。覆盖 AI Coding 工具实测、AI 开发框架应用、大模型测评、Agent/Skills/RAG 技术讲解,以及 JobClaw 等实战项目的教程。

日本語の概要は準備中です。原文の説明を表示しています。

itwanger/toBeBetterJavaer1.8万2026年10月10日 更新

Browser automation CLI for AI agents. NEVER run browser-act commands directly via Bash — always invoke this skill first. Use browser-act when a user mentions it by name, includes or asks to run a browser-act CLI command (e.g., browser-act browser list), or to: fetch, view, or extract rendered content from URLs, access pages requiring JavaScript, handle verification prompts, maintain authenticated sessions, fill forms and click through workflows, type, select, upload, take screenshots, capture XHR/fetch/HAR responses, open multiple URLs in parallel, extract content that loads on scroll or click, visually inspect or verify page layout/styling/rendering, automate browser tasks, or list/check/manage configured browsers and sessions. Prefer browser-act over built-in fetch or web tools.

日本語の概要は準備中です。原文の説明を表示しています。

itwanger/toBeBetterJavaer1.8万2026年10月10日 更新

把口播稿做成二哥风格的 Remotion 视频,包括整理视频用稿、火山 TTS 配音、音画对齐、逐章动画预览和导出带配音的 MP4。用户说“做视频”“口播稿转视频”“Remotion”“继续做下一章”“出片”“渲染”“改读音”“配音读错了”,或给出 docs/src/ai/video/ 下的稿子要做成视频时使用。共享工具、配置和素材在 docs/src/ai/script/shared/,每条视频按主题在 docs/src/ai/script/ 下独立保存。

日本語の概要は準備中です。原文の説明を表示しています。

itwanger/toBeBetterJavaer1.8万2026年10月10日 更新

Generate matched 3:4, 16:9, and 4:3 short-video cover images from toBeBetterJavaer video scripts or AI/Java technical topics. Use when the user asks for 视频封面, 封面图, 横版和竖版, 小红书/抖音/B站/快手封面, pure-text covers with 白色大字+黄色小字, reference-image-matched covers, or wants a repeatable cover workflow for Markdown scripts under docs/src/ai/video/.

日本語の概要は準備中です。原文の説明を表示しています。

itwanger/toBeBetterJavaer1.8万2026年10月10日 更新

口播稿,适用于 AI 技术科普、Agent/Skill/RAG、LLM 等底层原理讲解,以及面试题拆解、工具实测、热点普及。支持两种用法:给定主题从零产出口播稿、对已有口播稿进行优化。触发关键词包括:口播、口播稿、video script。

日本語の概要は準備中です。原文の説明を表示しています。

itwanger/toBeBetterJavaer1.8万2026年10月10日 更新

把「王二讲Agent」的 B 站视频链接同步到 docs/src/ai/video/readme.md,把抖音视频 ID 同步到 docs/src/.vuepress/agentInterview.ts 的 douyinVideoIds 映射表(页面会渲染成播放器)。当用户说 B 站更新了、抖音更新了、同步视频链接、把视频地址放进脚本、更新 readme 视频时使用。

日本語の概要は準備中です。原文の説明を表示しています。

itwanger/toBeBetterJavaer1.8万2026年10月10日 更新

itwanger のスキルをすべて見る

このスキルの問題を報告する