# Zhihu Search

Searches Zhihu through its API for answers and articles on a topic.

- Repository: https://github.com/itwanger/toBeBetterJavaer (17806 stars)
- Category: Data and ML
- License: see repository
- Last updated: 2026-10-30
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add itwanger/toBeBetterJavaer --skill zhihu-search -g -a claude-code -y`
Codex: `npx skills add itwanger/toBeBetterJavaer --skill zhihu-search -g -a codex -y`
Cursor: `npx skills add itwanger/toBeBetterJavaer --skill zhihu-search -g -a cursor -y`
Gemini CLI: `npx skills add itwanger/toBeBetterJavaer --skill zhihu-search -g -a gemini-cli -y`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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.

The rest: https://github.com/itwanger/toBeBetterJavaer/blob/HEAD/output/zhihu-search/zhihu-search/SKILL.md
