Agent skill

Weibo Hub

by OpenMinis in OpenMinis/MinisSkills

A skill for reading and writing Weibo data with Python + UV.

MITAuto-check passedProductivity & Automation

Install Weibo Hub

skills CLI
$ npx skills add OpenMinis/MinisSkills --skill weibo-hub -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OpenMinis/MinisSkills weibo-hub --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OpenMinis/MinisSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/weibo-hub .claude/skills/weibo-hub && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
weibo-hub
GitHub stars
446
Token cost
~1.8k tokens
SKILL.md length
367 words
Files
8 (incl. scripts)
Skills in repo
49
Repo updated
First seen
Licence
MIT

At a glance

A skill for reading and writing Weibo data with Python + UV.

  • Works in 2 steps: Use browser_use to Extract Cookies → Read and Save Credentials from the env…
  • Tasks that involve Browser automation
  • SKILL.md covers File Structure, Authentication Flow (Check…, Environment Setup and Quick Start, plus 3 more sections
  • Runs Python scripts from its folder; calls uv; reaches weibo.com

What it does

Weibo Hub is an agent skill from OpenMinis/MinisSkills. A skill for reading and writing Weibo data with Python + UV. It depends only on httpx and uses browseruse getcookies to automatically retrieve cookies and complete authentication, with no manual copying required. It supports trending searches, popular feeds, following feeds, keyword search, Weibo post details/comments/reposts, user profiles/posts/following/follower lists, and more. This skill must be triggered whenever the user mentions "Weibo", "weibo", "weibo-hub", "Weibo trending searches", "scraping Weibo"…

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts (for example `scripts/__init__.py`, `scripts/auth.py` and `scripts/client.py`).

It sits in Productivity & Automation, covering Browser automation, Web scraping and Authentication. It works with Python. The repository describes itself as: Skills collection for Minis. The licence is MIT.

When your agent uses it

  • Tasks that involve Browser automation
  • Tasks that involve Web scraping
  • Tasks that involve Authentication

Example prompts

  • “weibo-hub”
  • “Weibo trending searches”
  • “scraping Weibo”
  • “/weibo-hub”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Use browser_use to Extract Cookies
  2. Read and Save Credentials from the env File

What it can do on your machine

Read from SKILL.md and the folder at commit ae8c5db. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 5 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • weibo.com

    Also links to:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Weibo Hub loads about 1.8k tokens when it runs. Until then it costs about 165 tokens; SKILL.md has 367 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~165
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from OpenMinis/MinisSkills at commit ae8c5db, republished under its MIT licence (© OpenMinis). 367 words, ~1,762 tokens.

Download SKILL.mdSave it as .claude/skills/weibo-hub/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
weibo-hub
description
A skill for reading and writing Weibo data with Python + UV. It depends only on httpx and uses `browser_use get_cookies` to automatically retrieve cookies and complete authentication, with no manual copying required. It supports trending searches, popular feeds, following feeds, keyword search, Weibo post details/comments/reposts, user profiles/posts/following/follower lists, and more. This skill must be triggered whenever the user mentions "Weibo", "weibo", "weibo-hub", "Weibo trending searches", "scraping Weibo", "searching Weibo", "Weibo comments", "Weibo users", or any scenario that requires programmatic reading or writing of Weibo data.

weibo-hub

Adapted from: jackwener/weibo-cli (Apache-2.0)

This skill streamlines the original repository as follows:

  • Removed the click / rich / browser-cookie3 / qrcode / pyyaml dependencies
  • Kept only httpx as a third-party dependency
  • Removed the CLI layer; all functionality is encapsulated as a synchronous Python API
  • Changed authentication to extracting cookies with browser_use get_cookies, then calling setup_credential() to save them
  • Changed the data directory to /var/minis/workspace/weibo-hub/

File Structure

/var/minis/skills/weibo-hub/
├── SKILL.md
├── pyproject.toml          # httpx only
└── scripts/
    ├── __init__.py
    ├── constants.py        # API endpoints, headers, and path constants
    ├── exceptions.py       # WeiboError exception hierarchy
    ├── auth.py             # Credential persistence (no browser-cookie3)
    └── client.py           # WeiboClient core class (all APIs)

Authentication Flow (Check Before Each Use)

weibo-hub uses browser cookie authentication, extracted from weibo.com with browser_use get_cookies. It does not require browser-cookie3 or QR code scanning.

Step 1: Use browser_use to Extract Cookies
python
# Call in the agent:
browser_use(action="navigate", url="https://weibo.com")
# After confirming you are logged in:
browser_use(action="get_cookies", url="https://weibo.com")
# Record the returned offload env file path
Step 2: Read and Save Credentials from the env File
python
import sys, os, subprocess, json

# Load Cookie environment variables (the path comes from the offload file returned by get_cookies)
env_file = "/var/minis/offloads/env_cookies_xxx.sh"   # Replace with the actual path
result = subprocess.run(
    f". {env_file} && python3 -c \"import os,json; print(json.dumps(dict(os.environ)))\"",
    shell=True, capture_output=True, text=True
)
env = json.loads(result.stdout)

# Parse the Cookie dictionary (variables with the COOKIE_ prefix)
cookies = {
    k[len("COOKIE_"):]: v
    for k, v in env.items()
    if k.startswith("COOKIE_")
}

# Save credentials
sys.path.insert(0, "/var/minis/skills/weibo-hub")
from scripts.client import WeiboClient
WeiboClient.setup_credential(cookies)

Required Cookies: SUB, SUBP (required). The more additional cookies, the better. Credentials are saved to /var/minis/workspace/weibo-hub/credential.json, valid for 7 days, and an expiration prompt is shown automatically when they expire.


Environment Setup

bash
cd /var/minis/skills/weibo-hub
uv sync

Quick Start

python
import sys
sys.path.insert(0, "/var/minis/skills/weibo-hub")
from scripts.client import WeiboClient

with WeiboClient() as client:

    # ── Trending searches / trends (no login required)──────────────────────────────
    topics = client.hot_search()          # Trending search list (~52 entries)
    for t in topics[:10]:
        print(f"#{t.get('realtime_hot_show_label','')} {t.get('word','')}")

    band = client.hot_band()              # Full trending search list
    trends = client.trending()            # Real-time search suggestions

    # ── Feeds (popular requires no login; following requires login)─────────────────────
    hot = client.hot_feed(count=10)       # Popular timeline
    home = client.home_feed(count=20)     # Following timeline

    # ── Search (mobile API)────────────────────────────────────
    results = client.search("Artificial Intelligence", page=1)
    for w in results[:5]:
        print(w.get("text", "")[:80])

    # ── Weibo post details / comments / reposts (login required)──────────────────
    wb = client.detail("Qw06Kd98p")
    cmt = client.comments("WeiboID", count=20)
    rep = client.reposts("WeiboID", count=10)

    # ── Users (login required)─────────────────────────────────────
    me = client.me()                      # Currently logged-in user
    user = client.profile("1699432410")   # Specified user profile
    weibos = client.user_weibos("1699432410", page=1)
    following = client.following("1699432410", page=1)
    followers = client.followers("1699432410", page=1)

API Quick Reference

No Login Required (Public APIs)
MethodDescription
hot_search()Trending search sidebar (~52 entries)
hot_band()Full trending search list
trending()Real-time search suggestions
hot_feed(count, max_id)Popular timeline
search(keyword, page)Keyword search for Weibo posts
MethodDescription
me()Current logged-in user information
home_feed(count, max_id)Following timeline
detail(mblogid)Details for a single Weibo post
comments(weibo_id, count, max_id)Weibo comment list
reposts(weibo_id, page, count)Weibo repost list
profile(uid)User profile
user_weibos(uid, page, count)User's Weibo post list
following(uid, page)User following list
followers(uid, page)User follower list
Show full SKILL.md (137 more words)Show less
Authentication
MethodDescription
WeiboClient.setup_credential(cookies)Save Cookie credentials (static method)

Anti-Abuse Notes

Consistent with the upstream weibo-cli:

  • Gaussian jitter: Interval between requests = request_delay + gauss(0.3, 0.15), about 1 s
  • 5% long pause: Randomly triggers an additional 2-5 s delay to simulate reading behavior
  • Exponential backoff: HTTP 429/5xx retries up to 3 times, with a wait time of 2^n seconds
  • Chrome 145 UA: Desktop User-Agent, consistent with the browser fingerprint

Notes

  • Before first use, you must call WeiboClient.setup_credential(cookies) to save credentials
  • Credential file: /var/minis/workspace/weibo-hub/credential.json, permissions 0600
  • Required Cookies: SUB + SUBP; if missing, setup_credential() throws ValueError
  • Cookies automatically prompt as expired after 7 days and must be extracted again
  • Trending searches, popular feeds, and search do not require login; profile, detail, home_feed, and similar methods require valid cookies
  • search() uses the mobile API (m.weibo.cn), and the result format is slightly different

© OpenMinis, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts) in weibo-hub of OpenMinis/MinisSkills.

  • SKILL.md
  • pyproject.toml
  • scripts/__init__.py
  • scripts/auth.py
  • scripts/client.py
  • scripts/constants.py
  • scripts/exceptions.py
  • uv.lock

Open the folder on GitHubat commit ae8c5db

Compare with similar skills

Weibo Hub next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Weibo Hub compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Weibo Hub this skillOpenMinis/MinisSkills446—~1.8kAutomated safety check: PassMIT
Skyvern Browser AutomationSkyvern-AI/skyvern23k—~1.9kAutomated safety check: PassAGPL-3.0
Tiered Web Browsing and Scrapingcode-yeongyu/oh-my-openagent70k—~2.7kAutomated safety check: WarnCustom licence
Image ScraperaAAaqwq/AGI-Super-Team105—~914Automated safety check: PassMIT
Firecrawl Interact Integrationfirecrawl/firecrawl190k1 repos~731Automated safety check: PassISC
Anti Detect Browserantibrow/anti-detect-browser-skills17—~9.8kAutomated safety check: WarnMIT

Similar skills

  • Skyvern Browser Automation

    Skyvern-AI/skyvern

    Automates websites with Skyvern's AI browser agent to fill forms, extract data, download files, log in and run multi-step workflows through SDKs, REST, MCP or a CLI.

    23k GitHub stars~1.9k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Tiered Web Browsing and Scraping

    code-yeongyu/oh-my-openagent

    Routes a web request through the cheapest tier that can finish it, from headless extraction with WAF bypass up to a real stealth or signed-in browser, with screenshots as proof.

    70k GitHub stars~2.7k tokensUpdated today
    Productivity & AutomationAuto-check: warnings
  • Image Scraper

    aAAaqwq/AGI-Super-Team

    Scrape and download all images from a given URL. An agent skill from aAAaqwq/AGI-Super-Team.

    105 GitHub stars~914 tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Guides adding Firecrawl's /interact endpoint to product code for pages that need clicks, forms, pagination or logged-in flows beyond plain scraping.

    190k GitHub starsUsed in 1 repo~731 tokens
    Data & AnalyticsAuto-check passed
  • Anti Detect Browser

    antibrow/anti-detect-browser-skills

    Drive Chromium from standard Playwright APIs with a real-device fingerprint applied in the kernel, one persistent isolated profile per identity, and a per-profile proxy whose exit IP sets timezone…

    17 GitHub stars~9.8k tokensUpdated 1 mo ago
    Testing & QAAuto-check: warnings
  • Fetches full Airbnb listing details for a numeric listing ID, including amenities, photos, house rules and ratings, through the site's internal GraphQL API.

    6.1k GitHub stars~1.4k tokensUpdated 1 mo ago
    Data & AnalyticsAuto-check passed

More from OpenMinis/MinisSkills

All 49 skills in this repo
  • Android UI Automation

    OpenMinis/MinisSkills

    Automate Android apps that have no public API or web version by driving the UI layer through the Accessibility Service.

    446 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed
  • Codex On Ish

    OpenMinis/MinisSkills

    Install and run OpenAI Codex CLI inside the Minis/iSH Alpine sandbox on iOS, where rustls TLS and async sockets are broken.

    446 GitHub stars~1k tokensUpdated 2 days ago
    Auto-check passed
  • Evidence Chain Builder

    OpenMinis/MinisSkills

    Score a claim against the evidence behind it. An agent skill from OpenMinis/MinisSkills.

    446 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Hyperframes CLI

    OpenMinis/MinisSkills

    HyperFrames CLI and Minis rendering. An agent skill from OpenMinis/MinisSkills.

    446 GitHub stars~3.5k tokensUpdated 2 days ago
    Auto-check passed
  • Whenpeak

    OpenMinis/MinisSkills

    Predict when a person's brain works best from their sleep, using the WhenPeak performance-intelligence API, and turn it into concrete scheduling advice.

    446 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Openstreetmap Marker

    OpenMinis/MinisSkills

    Generate a mobile-first, immersive, Amap(Gaode)-style custom landmark marker HTML map for travel itinerary planning, place showcasing, location sharing, etc.

    446 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Weibo Hub

What does Weibo Hub do?

A skill for reading and writing Weibo data with Python + UV. Weibo Hub is an agent skill from OpenMinis/MinisSkills. A skill for reading and writing Weibo data with Python + UV.

When should I use Weibo Hub?

Weibo Hub fits situations like: tasks that involve Browser automation; tasks that involve Web scraping; tasks that involve Authentication.

How do I install Weibo Hub in Claude Code?

Run `npx skills add OpenMinis/MinisSkills --skill weibo-hub -a claude-code`. Or copy the skill folder (weibo-hub in OpenMinis/MinisSkills) into .claude/skills/weibo-hub in your project. Claude Code loads it when a task matches its description.

How do I install Weibo Hub in Codex?

Run `npx skills add OpenMinis/MinisSkills --skill weibo-hub -a codex`. Or copy the skill folder (weibo-hub in OpenMinis/MinisSkills) into .agents/skills/weibo-hub in your project. Codex loads it when a task matches its description.

Can I use Weibo Hub in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenMinis/MinisSkills --skill weibo-hub -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/weibo-hub, .gemini/skills/weibo-hub, .github/skills/weibo-hub and .opencode/skills/weibo-hub in your project.

What does Weibo Hub need to run?

Going by SKILL.md and its folder, Weibo Hub needs Python for the scripts in its folder and the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Weibo Hub access the network?

SKILL.md names 2 domains. In commands or code: weibo.com; the agent is likely to contact it when it follows the instructions. As links in the text: github.com. This is read from the text; nothing was executed.

Is Weibo Hub safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Weibo Hub use?

Weibo Hub is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Weibo Hub use?

About 1.8k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Weibo Hub?

Skills that share tags, products or a category with Weibo Hub: Skyvern Browser Automation (Skyvern-AI/skyvern, 23k stars), Tiered Web Browsing and Scraping (code-yeongyu/oh-my-openagent, 70k stars), Image Scraper (aAAaqwq/AGI-Super-Team, 105 stars) and Firecrawl Interact Integration (firecrawl/firecrawl, 190k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Weibo Hub?

OpenMinis (a GitHub organization) maintains it in OpenMinis/MinisSkills, which has 446 GitHub stars. The repository holds 49 skills in this directory. The repository was last updated on October 7, 2026.

Source: OpenMinis/MinisSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.