weibo-hub

Read and search Weibo data through a Python httpx client with cookie authentication.

1|Updated Jun 20, 2026
One-click install
npx skills add https://github.com/riipandi/minis-skills --skill weibo-hub-riipandi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weibo-hub
Source: https://github.com/riipandi/minis-skills/tree/main/weibo-hub
Command: npx skills add https://github.com/riipandi/minis-skills --skill weibo-hub-riipandi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, and includes scripts (resource) components.

What problem does it solve? Accessing Weibo data programmatically usually requires dealing with complex authentication, rate limits, and anti-scraping measures. This Skill provides a ready-made Python client that handles cookie-based login, request throttling, and retries so you can query trending topics, feeds, posts, comments, and user profiles directly. ## Core Features & Use Cases - Trending & Search: Fetch hot search lists, trending suggestions, hot feeds, and keyword search results without logging in. - Authenticated Access: Read following timelines, weibo details, comments, reposts, user profiles, followers, and following lists using browser-extracted cookies. - Built-in Anti-Detection: Gaussian request jitter, random long pauses, and exponential backoff on HTTP 429/5xx reduce the chance of being blocked. - Use Case: A researcher tracking public opinion can extract cookies once via the browser, then pull the daily trending list and search results for specific keywords into a dataset for analysis. ## Quick Start Ask the agent to log into weibo.com in the browser, save the cookies with WeiboClient.setup_credential, and then fetch the current Weibo hot search list.

Frequently Asked Questions about weibo-hub

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scrape Weibo trending searches with Python?

Use the WeiboClient hot_search() or hot_band() methods, which return the trending sidebar and full trending list as JSON without requiring login. Create the client in a with block and iterate over the returned list of topic dictionaries.

How do I authenticate Weibo API requests without a password?

Authentication uses browser cookies instead of passwords. Log into weibo.com in a browser, extract cookies via browser_use get_cookies, then pass them to WeiboClient.setup_credential(), which saves them to a local credential file valid for 7 days.

Which Weibo endpoints work without logging in?

Hot search, hot band, trending suggestions, hot feed, and keyword search all work without authentication. User profiles, home timelines, weibo details, comments, reposts, and follower lists require valid SUB and SUBP cookies.

Why does my Weibo request return a session expired error?

The client raises SessionExpiredError when the API returns ok=-100 or a login-required message, meaning your cookies are stale. Re-extract cookies from a logged-in browser session and call setup_credential() again to refresh them.

How does the client avoid Weibo rate limits and bans?

Each request waits about one second plus Gaussian jitter, with a 5% chance of a 2-5 second pause to mimic reading behavior. HTTP 429 and 5xx responses trigger exponential backoff retries up to three times.

What Python dependencies are required to run this Weibo client?

Only httpx version 0.27 or higher is required, on Python 3.10 or later. Install dependencies by running uv sync in the skill directory; no CLI, QR code, or browser-cookie libraries are needed.