Skip to content

feat(douyin): add user-videos command with top comments#554

Merged
jackwener merged 3 commits intojackwener:mainfrom
sunbird89629:feat/douyin-user-videos
Mar 29, 2026
Merged

feat(douyin): add user-videos command with top comments#554
jackwener merged 3 commits intojackwener:mainfrom
sunbird89629:feat/douyin-user-videos

Conversation

@sunbird89629
Copy link
Copy Markdown
Contributor

Summary

  • Adds opencli douyin user-videos <sec_uid> command to fetch a public user's video list
  • Concurrently fetches top 10 comments per video using Promise.all
  • Outputs: index, aweme_id, title, duration, digg_count, play_url, top_comments

Usage

# Get the last 20 videos from a user (default)
opencli douyin user-videos MS4wLjABAAAA...

# Get only the 5 most recent
opencli douyin user-videos MS4wLjABAAAA... --limit 5

Test plan

  • Run opencli douyin user-videos <sec_uid> with a valid public account and confirm video rows appear
  • Verify top_comments field contains up to 10 comments with text, digg_count, nickname
  • Run with --limit 3 and confirm exactly 3 rows are returned
  • Run with an invalid sec_uid and confirm a graceful error

🤖 Generated with Claude Code

sunbird89629 and others added 2 commits March 29, 2026 17:37
Adds a new adapter for fetching a public user's video list by sec_uid,
alongside the top-10 hottest comments for each video.

- Navigates to the user's profile page to establish a cookie session
- Fetches video list via /aweme/v1/web/aweme/post/
- Concurrently fetches top-10 comments per video via
  /aweme/v1/web/comment/list/ (sorted by hotness, API default)

Output columns: index, aweme_id, title, duration, digg_count,
                play_url, top_comments
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jackwener jackwener force-pushed the feat/douyin-user-videos branch from 17fc741 to 56bbb50 Compare March 29, 2026 09:40
@jackwener jackwener force-pushed the feat/douyin-user-videos branch from 56bbb50 to 97f1e7c Compare March 29, 2026 09:41
@jackwener jackwener merged commit 79b4e06 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