Skip to content

feat(hupu): add Hupu adapter #751

Merged
jackwener merged 3 commits intojackwener:mainfrom
zhangtaopy:hupu-reply-fix
Apr 4, 2026
Merged

feat(hupu): add Hupu adapter #751
jackwener merged 3 commits intojackwener:mainfrom
zhangtaopy:hupu-reply-fix

Conversation

@zhangtaopy
Copy link
Copy Markdown
Contributor

This PR adds a new Hupu adapter based on the browser runtime.

It currently supports:

hupu hot for fetching hot threads
hupu search for searching threads by keyword
hupu detail for reading thread details and hot replies
hupu reply for posting replies, including quoted replies
hupu like and hupu unlike for liking and unliking posts
This PR also adds related documentation for Hupu usage in the README and browser adapter docs.

zhangtaopy and others added 3 commits April 4, 2026 11:43
- Merge postHupuJson and postHupuReplyJson into single function with mode parameter
- Move stripHtml and decodeHtmlEntities to utils.ts, remove duplicate definitions
@jackwener jackwener merged commit e0a66af into jackwener:main Apr 4, 2026
just-buer pushed a commit to just-buer/opencli that referenced this pull request Apr 8, 2026
* feat(hupu): add hupu cli adapter

* fix(hupu): prevent detail from returning the wrong thread

* refactor: deduplicate shared utilities in hupu adapter

- Merge postHupuJson and postHupuReplyJson into single function with mode parameter
- Move stripHtml and decodeHtmlEntities to utils.ts, remove duplicate definitions

---------

Co-authored-by: jackwener <jakevingoo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants