Repository navigation
fix: collect Douyin metrics from current work-detail pages - #78
Closed
zhu-siyuan wants to merge 1 commit into
Closed
zhu-siyuan wants to merge 1 commit into
zhu-siyuan wants to merge 1 commit into
Conversation
This was referenced Oct 24, 2026
Merged
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.
The Douyin detail collector still used
/creator-micro/data/following/media?item_id=.... That route can load successfully while showing the account's following list, so the adapter silently misses work-level watch-time and retention data.This change opens
/creator-micro/work-management/work-detail/<aweme_id>, verifies the work-detail UI, and visits the Traffic Analysis tab to capture its lazy-loaded metrics. It excludes account-wide dashboard responses, removes URL query strings from captured endpoint labels, and fails explicitly on missing detail responses. Reports now include visible overview/traffic snapshots and preserve complete responses in a companiondetail.json, including when the wrapper relocates the report.Validation:
git diff --checkpasses.No account credentials, real work IDs, user metrics, comments, screenshots, or media are included. Existing comment collection behavior is unchanged. The browser selectors and API paths remain subject to future platform changes.