feat(weibo): add statuses command to fetch user timeline#1256
Open
ZepPellN wants to merge 2 commits intojackwener:mainfrom
Open
feat(weibo): add statuses command to fetch user timeline#1256ZepPellN wants to merge 2 commits intojackwener:mainfrom
ZepPellN wants to merge 2 commits intojackwener:mainfrom
Conversation
added 2 commits
April 29, 2026 00:20
Add Z-Library adapter with two browser-based commands:
- `search` — Search books by title, author, or ISBN.
Navigates to /s/<query> and extracts results from
<z-bookcard> shadow DOM custom elements.
- `info` — Get book details and available download formats
from a book page URL.
Uses Strategy.COOKIE with browser automation to bypass
Cloudflare protection. The adapter reuses the user's existing
Z-Library login cookies from system Chrome.
Known limitation: actual file downloading requires Playwright's
download event handling (page.on('download')). OpenCLI's browser
automation does not currently intercept file downloads. Users
needing to download files should use Playwright to navigate to
the book URLs discovered by this adapter.
Add `opencli weibo statuses <id>` command to fetch a user's Weibo statuses/timeline via /ajax/statuses/mymblog API. Supports: - uid (numeric) or screen_name as positional arg - --limit (max 50, default 15) - --page for pagination - Returns: id, mblogid, text, isLongText, created_at, reposts, comments, likes, pic_num, url - Includes retweeted content and page_info when available Closes gap where opencli weibo had user/profile and single post fetch, but no way to list a specific user's statuses.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
opencli weibo statuses <id>command to fetch a specific user's Weibo timeline.Currently opencli supports:
weibo user <id>— user profileweibo post <id>— single post detailweibo feed— personal for-you / following timelineBut there is no way to list a specific user's statuses. This PR fills that gap.
What Changed
clis/weibo/statuses.js/ajax/statuses/mymblog?uid=<uid>&page=<page>&feature=0API (discovered via browser network capture)id,mblogid,text,isLongText,created_at,reposts,comments,likes,pic_num,url, plusretweetedandpage_infowhen availableUsage
Test Plan
opencli validatepassesNotes
textis capped at 500 chars in list view; useweibo post <mblogid>for full long-text expansion