Skip to content

feat(xiaohongshu): add cover image URL to user notes output#572

Merged
jackwener merged 3 commits intojackwener:mainfrom
jeffdeen:feat/xiaohongshu-user-cover-url
Mar 29, 2026
Merged

feat(xiaohongshu): add cover image URL to user notes output#572
jackwener merged 3 commits intojackwener:mainfrom
jeffdeen:feat/xiaohongshu-user-cover-url

Conversation

@jeffdeen
Copy link
Copy Markdown
Contributor

Summary

  • Extract cover image URL from noteCard.cover.urlDefault in __INITIAL_STATE__ store data
  • Add cover column to the xiaohongshu user command output
  • Enables batch downloading of note cover images without extra browser requests

Changes

  • src/clis/xiaohongshu/user-helpers.ts: Add cover field to XhsUserNoteRow interface; extract cover URL with fallback chain (urlDefaulturlPreurl)
  • src/clis/xiaohongshu/user.ts: Add cover to output columns

Test plan

  • Run opencli xiaohongshu user <user-id> --limit 5 -f json and verify cover field contains valid image URLs
  • Verify cover URLs are accessible and return correct images via curl
  • Verify both video and image type notes have cover URLs

🤖 Generated with Claude Code

jeffdeen and others added 2 commits March 29, 2026 17:32
Extract cover image URL from noteCard.cover.urlDefault in
__INITIAL_STATE__ and include it in the user command output columns.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jackwener jackwener force-pushed the feat/xiaohongshu-user-cover-url branch from ff1ed04 to 6d22f7a Compare March 29, 2026 09:35
@jackwener jackwener merged commit d2b563e into jackwener:main Mar 29, 2026
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