# Crawl4weibo

> Query Weibo users, posts, and comments through the local crawl4weibo CLI. Use when the workspace contains this repository and the user wants deterministic shell access to the project's Weibo crawling capabilities from OpenClaw. Use when this capability is needed.

- Skill: `tomevault-io/crawl4weibo` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/crawl4weibo`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/crawl4weibo/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/crawl4weibo

---


# crawl4weibo

- Compute the repository root as `repo_root=$(cd "{baseDir}/../.." && pwd)`.
- Treat this as a workspace skill under `<workspace>/skills`; if you move it to `~/.openclaw/skills`, update the repo root calculation first.
- Run all commands from `"$repo_root"` so `uv` can resolve `pyproject.toml`.
- Prefer the built-in CLI instead of ad-hoc Python snippets.
- Commands print JSON to stdout by default.
- Use `--detail full` only when the user asks for full raw fields; otherwise prefer `--detail compact`.
- Add `--cookie`, `--auto-fetch-cookies`, or `--disable-browser-cookies` when login-dependent data is required.
- Add `--no-proxy` when the user explicitly wants to bypass proxies.

## Commands

- Get a user: `cd "$repo_root" && uv run crawl4weibo-cli get-user --uid 2656274875`
- Get user posts: `cd "$repo_root" && uv run crawl4weibo-cli get-user-posts --uid 2656274875 --page 1`
- Get a post: `cd "$repo_root" && uv run crawl4weibo-cli get-post --bid Q6FyDtbQc`
- Search users: `cd "$repo_root" && uv run crawl4weibo-cli search-users --query "雷军" --count 5`
- Search posts: `cd "$repo_root" && uv run crawl4weibo-cli search-posts --query "新能源" --page 1`
- Get comments: `cd "$repo_root" && uv run crawl4weibo-cli get-comments --post-id 1234567890 --page 1`
- Get all comments: `cd "$repo_root" && uv run crawl4weibo-cli get-all-comments --post-id 1234567890 --max-pages 3`

---
> Source: [Praeviso/crawl4weibo](https://github.com/Praeviso/crawl4weibo) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-18 -->

