weibo-cli

Solid

Use weibo-cli for ALL Weibo (微博) operations — keyword search, hot search, trending topics, timelines, weibo details, comments, reposts, user profiles, and follower/following lists. Invoke whenever user requests any Weibo interaction.

Data & Documents 66 stars 11 forks Updated 2 months ago

Install

View on GitHub

Quality Score: 75/100

Stars 20%
61
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
0
Description 5%
100

Skill Content

# weibo-cli — Weibo CLI Tool **Binary:** `weibo` **Credentials:** browser cookies (auto-extracted) or QR code login ## Setup ```bash # Install (requires Python 3.10+) git clone git@github.com:jackwener/weibo-cli.git cd weibo-cli && uv sync ``` ## Authentication **IMPORTANT FOR AGENTS**: Before executing ANY weibo command, check if credentials exist first. Do NOT assume cookies are configured. ### Step 0: Check if already authenticated ```bash weibo status 2>/dev/null && echo "AUTH_OK" || echo "AUTH_NEEDED" ``` If `AUTH_OK`, skip to [Command Reference](#command-reference). If `AUTH_NEEDED`, proceed to Step 1. ### Step 1: Guide user to authenticate **Method A: Browser cookie extraction (recommended)** Ensure user is logged into weibo.com in any supported browser (Chrome, Arc, Edge, Firefox, Brave, Chromium, Opera, Vivaldi, Safari, LibreWolf). weibo-cli auto-extracts cookies. ```bash weibo login weibo login --qrcode # QR code login directly (skip browser cookies) weibo status ``` **Method B: QR code login** ```bash weibo login # → Renders QR in terminal using Unicode half-blocks # → Scan with Weibo App (我的 → 扫一扫) → confirm ``` ### Step 2: Handle common auth issues | Symptom | Agent action | |---------|-------------| | `⚠️ 未登录` | Guide user to login to weibo.com in browser, then run `weibo login` | | `会话已过期` | Run `weibo logout && weibo login` | | Cookie extraction hangs | Browser may be running; close browser and retry | ## Output Format ### Default: R...

Details

Author
jackwener
Repository
jackwener/weibo-cli
Created
2 months ago
Last Updated
2 months ago
Language
Python
License
None

Similar Skills

Semantically similar based on skill content — not just same category